Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#15364 closed defect (bug) (fixed)

Query for post_type of "any" throws notice

Reported by: filosofo's profile 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 15 years ago.

Download all attachments as: .zip

Change History (2)

#1 @nacin
15 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.