Skip to content

Add support for exact search in the REST API posts endpoint. #66069

@david-binda

Description

@david-binda

Description

https://core.trac.wordpress.org/changeset/59034/ introduces support for exact search in REST API posts endpoint for the WordPress 6.7.

Since the plugin is overriding the WP_REST_Posts_Controller in

class Gutenberg_REST_Posts_Controller_6_7 extends WP_REST_Posts_Controller {
, the support should be added here as well in order to not remove the exact support when the plugin is run on a site with the upcoming WordPress 6.7 release.

Step-by-step reproduction instructions

  1. have a WordPress 6.7 beta instaled
  2. hit the posts REST API endpoint with the search param and search_semantics set to exact
  3. observe it not being taken into consideration with the Gutenberg 19.4.0 installed

You might need to create posts with similar/same titles and post_content as the related PHPUnit tests do. See https://wpcom.trac.automattic.com/changeset/304569 for more details

Screenshots, screen recording, code snippet

No response

Environment info

  • WordPress 6.7 beta release

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Metadata

Metadata

Assignees

Labels

[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions