#25664 closed defect (bug) (fixed)
Behavior of the 'posts_search' filter has changed
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.7 | Priority: | normal |
| Severity: | normal | Version: | 3.7 |
| Component: | Query | Keywords: | has-patch |
| Focuses: | Cc: |
Description
As reported on the forums, [25632] changed the behaviour of the posts_search filter.
In 3.6, the filter is applied unconditionally, even when the 's' query var is empty.
In 3.7-RC1, the filter has been moved into WP_Query::parse_search(), which is only executed if $q['s'] is not empty, so a plugin cannot add a search clause to a query if it doesn't have one.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
25664.patch restores the 3.6 behaviour.