Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#19366 closed defect (bug) (fixed)

PHP notices if you aren't logged in and view a post preview

Reported by: ocean90's profile ocean90 Owned by: nacin's profile nacin
Milestone: 3.4 Priority: normal
Severity: normal Version: 2.8
Component: Query Keywords: has-patch
Focuses: Cc:

Description

Notice: Undefined offset: 0 in /wp-includes/query.php on line 2686

Notice: Trying to get property of non-object in /wp-includes/query.php on line 2686

Notice: Trying to get property of non-object in /wp-includes/capabilities.php on line 1000

Notice: Trying to get property of non-object in /wp-includes/capabilities.php on line 1004

Notice: Trying to get property of non-object in /wp-includes/capabilities.php on line 1006

Notice: Trying to get property of non-object in /wp-includes/capabilities.php on line 1007

Notice: Trying to get property of non-object in /wp-includes/capabilities.php on line 1007

Notice: Trying to get property of non-object in /wp-includes/capabilities.php on line 1010

Notice: Trying to get property of non-object in /wp-includes/capabilities.php on line 1010

Attachments (1)

19366.patch (519 bytes) - added by SergeyBiryukov 13 years ago.

Download all attachments as: .zip

Change History (5)

#1 @SergeyBiryukov
13 years ago

  • Keywords has-patch added; needs-patch removed

#2 @ocean90
13 years ago

  • Keywords 3.4-early added

#3 @ocean90
13 years ago

  • Keywords 3.4-early removed
  • Milestone changed from Awaiting Review to 3.4

#4 @nacin
13 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [19604]:

Fix notice when viewing a post preview logged out. props SergeyBiryukov, fixes #19366.

Note: See TracTickets for help on using tickets.