[wp-trac] [WordPress Trac] #38703: parse_search() before pre_get_posts hook
WordPress Trac
noreply at wordpress.org
Tue Mar 26 13:29:39 UTC 2019
#38703: parse_search() before pre_get_posts hook
-------------------------+-------------------------
Reporter: drzraf | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Query | Version:
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
-------------------------+-------------------------
Changes (by desrosj):
* status: new => closed
* version: 4.7 =>
* resolution: => worksforme
* milestone: Awaiting Review =>
Comment:
Hi @drzraf,
Sorry that it took so long for someone to respond to this ticket.
I just did some testing and when hooking into `pre_get_posts`, I see the
value searched for at the `s` index in the `query` and `query_vars`
arrays. It's possible that a different ticket addressed this. I was unable
to find one, though.
I am going to close this out as `worksforme`. But, if you are still having
issues with the search value not being included when hooking
`pre_get_posts`, feel free to reopen and provide more details to
reproduce.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38703#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list