[wp-trac] [WordPress Trac] #27266: Front end search for attachment title cannot succeed

WordPress Trac noreply at wordpress.org
Mon Mar 3 21:05:21 UTC 2014


#27266: Front end search for attachment title cannot succeed
--------------------------+------------------------------
 Reporter:  dglingren     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------
Changes (by helen):

 * keywords:   => close


Comment:

 If you want your site search to include attachments, you'll need to alter
 the query via `pre_get_posts` or similar to include the inherit status.
 I'm not sure we should be changing this now, as it would cause behavior to
 change on people's sites whether they want it or not.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27266#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list