[wp-trac] [WordPress Trac] #14661: Notices from edit.php?post_type=page
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 20 18:52:38 UTC 2010
#14661: Notices from edit.php?post_type=page
------------------------------+---------------------------------------------
Reporter: mrmist | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Warnings/Notices | Version: 3.0.1
Severity: minor | Keywords: needs-patch
------------------------------+---------------------------------------------
There are 2 notices under wp-debug from wp-admin\includes\template.php
caused when opening the edit Page screen when no Pages are present.
Trying to get property of non-object on lines 2483 and 2492.
The culprit appears to be the use of $post when $post is empty. A check
is made against $for-post but no empty comparison is done against $post.
Unfortunately my attempts to code a patch fell apart when trying to deal
with the knock-on effects of having to set a $post_date on line 2492...
This is under 3.0.1, I haven't tested against trunk as my svn copy has too
many pages.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14661>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list