compatibility with P2P 1.4.3 and WordPress 3.5 (by baden 03)