[wp-trac] [WordPress Trac] #20044: Enable search for pages by slug

WordPress Trac noreply at wordpress.org
Sun Feb 2 06:07:35 UTC 2014


#20044: Enable search for pages by slug
-------------------------+------------------
 Reporter:  ekitomat     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.9
Component:  Query        |     Version:  3.7
 Severity:  trivial      |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------

Comment (by wonderboymusic):

 [attachment:20044.3.diff 20044.3.diff] implements this as a filter on
 `query_search_fields`, which is more flexible than just jamming
 `post_name` in there. Because at that point, why not also add
 `post_excerpt`? This puts the onus on the developer to make the right
 decision in regards to performance.

 Added `query/search.php` to unit tests.

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


More information about the wp-trac mailing list