[wp-trac] [WordPress Trac] #17592: 'exclude_from_search' excludes from non-search queries

WordPress Trac wp-trac at lists.automattic.com
Fri May 27 18:17:53 UTC 2011


#17592: 'exclude_from_search' excludes from non-search queries
--------------------------+-----------------------------
 Reporter:  danblaker     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  3.1.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Any WP_Query using 'post_type' = 'all' will only return post types where
 'exclude_from_search' is FALSE. I would expect 'post_type' = 'all' to
 include all post types, *except* when initiated via a front-end search.

 Recommend adding an is_search() check when excluding post types from a
 'post_type' =  'all' query.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17592>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list