I believe this is more of a PHP bug rather than a WP bug, however I thought I should bring this to note. If you use the native WP function
body_class()with PHP 5.2 you get this error:
Catchable fatal error: Object of class stdClass could not be converted to string in /home2/swagger5/public_html/blogoodle/wp-includes/post-template.php on line 432
PHP 5.2 had an issue with chained statements, hence this error.
- The topic ‘WP function body_class throws error with PHP 5.2’ is closed to new replies.