wordpress-develop
wordpress-develop copied to clipboard
FIX: Add REST API filters to the Global Styles Revisions controller.
Summary
This PR adds two standard WordPress REST API filters to the Global Styles Revisions controller: rest_global_styles_revision_query and rest_prepare_global_styles_revision.
Currently, WP_REST_Global_Styles_Revisions_Controller lacks the standard WordPress REST filters, likely an oversight since other revision controllers include them.
Changes Proposed
- Adds
rest_global_styles_revision_queryfilter for query modification - Adds
rest_prepare_global_styles_revisionfilter for response data modification
Trac ticket: https://core.trac.wordpress.org/ticket/62742
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.