[wp-trac] [WordPress Trac] #20044: Enable search for pages by slug
WordPress Trac
noreply at wordpress.org
Sat Mar 8 04:33:13 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:
-------------------------+------------------
Changes (by jeremyfelt):
* keywords: has-patch needs-docs => has-patch
Comment:
[https://core.trac.wordpress.org/attachment/ticket/20044/20044.4.diff
20044.4.diff] checks anything passed in the filter against an array of
allowed search fields—post_title, post_content, post_name, and
post_excerpt—and then sets up the query.
I left out other posts fields from the allowed list as they don't seem
applicable. Docs added to the `query_search_fields` filter as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20044#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list