[wp-trac] [WordPress Trac] #19198: Die fast in get_posts if in_search_post_types returns nothing

WordPress Trac noreply at wordpress.org
Wed Sep 4 18:50:05 UTC 2013


#19198: Die fast in get_posts if in_search_post_types returns nothing
-----------------------------+---------------------
 Reporter:  mitchoyoshitaka  |       Owner:  ryan
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  3.7
Component:  Query            |     Version:  3.2.1
 Severity:  minor            |  Resolution:  fixed
 Keywords:  has-patch        |
-----------------------------+---------------------
Changes (by wonderboymusic):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"25239"]:
 {{{
 #!CommitTicketReference repository="" revision="25239"
 Kill the query in the following edge case: `post_type => 'any'` but
 `exclude_from_search => false` returns no valid post types. Adds unit
 tests.

 Props mitchoyoshitaka.
 Fixes #19198.
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/19198#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list