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

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 1 21:56:40 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:       
--------------------------+-------------------------------------------------
 Custom post types can show up in search results. Searches set the
 post_type to "any".  "any" queries pull in all post types except
 "revision", which is special cased.  We need a means for plugins to
 exclude their type from searches.  Either they can set a custom
 post_status to avoid as a matter of policy or provide API for registering
 the type and excluding it more formally.

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


More information about the wp-trac mailing list