Fix for PHP 5.4 and WP 2.8 incompatibility