PHP 5.3 fix for WPObject.