WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#14661 closed defect (bug) (worksforme)

Notices from edit.php?post_type=page

Reported by: mrmist Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.0.1
Component: Warnings/Notices Keywords: needs-patch
Focuses: Cc:
PR Number:

Description

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.

Change History (1)

#1 @dd32
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

This appears to be fixed on trunk as a knock on effect of the table cleanup scribu has done.

Note: See TracTickets for help on using tickets.