wordpress-develop/src/wp-includes/rest-api
Jb Audras 4b6d7ebbc5 Query: Add a search_columns argument to control which fields are searched in a search query.
Previously, the `s` argument of the `WP_Query::parse_query()` method searched the `post_title`, `post_excerpt`, and `post_content` fields, with no way of controlling this apart from using the `posts_search` filter and adjusting the SQL manually. This changeset adds the ability to specify which fields are searched when performing a query, using the `search_columns` argument.

Props johnbillion, birgire, petitphp, audrasjb, costdev, mukesh27.
Fixes #43867.


git-svn-id: https://develop.svn.wordpress.org/trunk@55248 602fd350-edb4-49c9-b593-d223f7449a82
2023-02-07 08:53:01 +00:00
..
endpoints Query: Add a search_columns argument to control which fields are searched in a search query. 2023-02-07 08:53:01 +00:00
fields Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:45:36 +00:00
search Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:45:36 +00:00
class-wp-rest-request.php HTTP API: Fix request header inconsistencies. 2023-02-03 13:33:18 +00:00
class-wp-rest-response.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:49:49 +00:00
class-wp-rest-server.php Code Modernization: Rename parameters that use reserved keywords in wp-includes/rest-api/class-wp-rest-server.php. 2022-12-13 18:32:33 +00:00