Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#15364 closed defect (bug) (fixed)

Query for post_type of "any" throws notice

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

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 16 years ago.

Download all attachments as: .zip

Change History (2)

#1 @nacin
16 years ago

  • Resolutionfixed
  • Status newclosed

(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.