[wp-trac] [WordPress Trac] #18049: PHP 5.4 compatibility warnings on creating default object from empty value
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 30 21:22:48 UTC 2011
#18049: PHP 5.4 compatibility warnings on creating default object from empty value
------------------------------+-----------------------
Reporter: eko-fr | Owner: nacin
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.3
Component: Warnings/Notices | Version: 3.2
Severity: normal | Resolution:
Keywords: has-patch |
------------------------------+-----------------------
Changes (by tech163):
* status: closed => reopened
* resolution: fixed =>
Comment:
In /wp-admin/edit.php on the bottom, you will see
{{{
Warning: Creating default object from empty value in /home/wordpress/www
/wp-admin/includes/post.php on line 428
}}}
I'm not sure how to create a .patch file for it, but adding the following
line to line 427/428 fixes it:
{{{
$post = new StdClass();
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18049#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list