WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#15364 closed defect (bug) (fixed)

Query for post_type of "any" throws notice

Reported by: filosofo Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.1
Component: Query Keywords: has-patch
Focuses: Cc:

Description

Patch fixes by checking to make sure that the post_type object has the requisite property before evaluating that property.

Attachments (1)

any-post-type-notice.15364.diff (484 bytes) - added by filosofo 11 years ago.

Download all attachments as: .zip

Change History (2)

#1 @nacin
11 years ago

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

(In [16276]) Ensure we have a valid post type object when checking for has_archive. props filosofo, fixes #15364.

Note: See TracTickets for help on using tickets.