Opened 14 years ago
Closed 14 years ago
#13929 closed defect (bug) (fixed)
Fatal errors in get_body_class() in latest trunk (15268)
Reported by: | uglyrobot | Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | highest omg bbq |
Severity: | blocker | Version: | 3.0 |
Component: | General | Keywords: | needs-patch |
Focuses: | Cc: |
Description
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.
Change History (4)
Note: See
TracTickets for help on using
tickets.
Broken in [15265]...