Opened 3 years ago
Closed 3 years ago
#13929 closed defect (bug) (fixed)
Fatal errors in get_body_class() in latest trunk (15268)
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | highest omg bbq | Milestone: | 3.0 |
| Component: | General | Version: | 3.0 |
| Severity: | blocker | Keywords: | needs-patch |
| Cc: | aaron@… |
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)
- Cc aaron@… added
I can confirm that Ryan's fix works for me on php 5.2.9 with 2010
Note: See
TracTickets for help on using
tickets.

Broken in [15265]...