[wp-trac] [WordPress Trac] #13929: Fatal errors in get_body_class() in latest trunk (15268)
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 16 21:32:53 UTC 2010
#13929: Fatal errors in get_body_class() in latest trunk (15268)
--------------------------+-------------------------------------------------
Reporter: uglyrobot | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.0
Component: General | Version: 3.0
Severity: blocker | Keywords: needs-patch
--------------------------+-------------------------------------------------
View any page in a theme that uses get_body_class() (2010 for example)
and you get a fatal error:
Catchable fatal error: Object of class stdClass could not be converted to
string in wp-includes\post-template.php on line 432
Seems the $page_id var is getting overwritten by the $wp_query class when
passed through $post = get_page($page_id);
Confirmed in WP and multisite with no plugins.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13929>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list