WordPress.org

Make WordPress Core

Opened 20 months ago

#38703 new enhancement

parse_search() before pre_get_posts hook

Reported by: drzraf Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7
Component: Query Keywords:
Focuses: Cc:

Description

When hooking pre_get_posts(), $query->get('s') may be of interest (in order, eg, to change some meta condition). But it's currently not possible because this query_vars is initialized far later in the get_posts() workflow (by parse_search()).

Is there anything which keeps core from doing parse_search() earlier? If not, could we provide query_vars['s'] to implementers of pre_get_posts?

Change History (0)

Note: See TracTickets for help on using tickets.