[wp-trac] [WordPress Trac] #10885: Custom post types show up in search

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 2 08:13:10 UTC 2009


#10885: Custom post types show up in search
--------------------------+-------------------------------------------------
 Reporter:  ryan          |       Owner:  ryan 
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  2.9  
Component:  Query         |     Version:  2.8.4
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------

Comment(by dd32):

 Sounds fair enough to me.

 Could we add a few GET api's instead of using the globals directly? Much
 like the taxonomies..

 {{{get_post_types()}}}

 Could even simplify things a little for calling functions by doing an
 array_intersect, for example, This'd only return items matching...

 {{{get_post_types( array('exclude_from_search' => false) );}}}

 Would save other code blocks having to iterate over and check for
 conditionals themselves.. Just a thought :)

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


More information about the wp-trac mailing list