Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use wp_is_serving_rest_request once we drop support for WP 6.4 #21333

Open
leonidasmi opened this issue Apr 24, 2024 · 0 comments
Open

Use wp_is_serving_rest_request once we drop support for WP 6.4 #21333

leonidasmi opened this issue Apr 24, 2024 · 0 comments

Comments

@leonidasmi
Copy link
Contributor

leonidasmi commented Apr 24, 2024

WP 6.5 introduced the wp_is_serving_rest_request() function (and the wp_is_rest_endpoint() function) that can rcompletely replace our Request_Helper class, so let's do that and use the core wp_is_serving_rest_request() function instead.

Things to take note of:

  • check references of the Request_Helper class and the REST_REQUEST define, in all our plugins, so we replace all of them.
  • check if in some cases, wp_is_rest_endpoint() is the more appropriate function to use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant