Opened 16 years ago
Closed 16 years ago
#13929 closed defect (bug) (fixed)
Fatal errors in get_body_class() in latest trunk (15268)
| Reported by: | uglyrobot | Owned by: | |
|---|---|---|---|
| Priority: | highest omg bbq | Milestone: | 3.0 |
| Component: | General | Version: | 3.0 |
| Severity: | blocker | Keywords: | needs-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Broken in [15265]...