[wp-trac] [WordPress Trac] #24811: get_post_type returns attachment as a searchable post type

WordPress Trac noreply at wordpress.org
Mon Jul 22 09:48:30 UTC 2013


#24811: get_post_type returns attachment as a searchable post type
---------------------------+------------------------------
 Reporter:  unknowndomain  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Post Types     |     Version:  3.5.2
 Severity:  normal         |  Resolution:
 Keywords:  close          |
---------------------------+------------------------------
Changes (by toscho):

 * cc: info@… (added)
 * keywords:   => close


Comment:

 The post type `attachment` is not registered with `'exclude_from_search'
 => false`, and it can be used in search results too. So this is the
 correct behavior.

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


More information about the wp-trac mailing list