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

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 1 21:57:11 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:       
--------------------------+-------------------------------------------------
Description changed by ryan:

Old description:

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

New description:

 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 getting in the search query 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#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list