wordpress-develop icon indicating copy to clipboard operation
wordpress-develop copied to clipboard

FIX: Add REST API filters to the Global Styles Revisions controller.

Open patil-vipul opened this issue 9 months ago • 5 comments

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_query filter for query modification
  • Adds rest_prepare_global_styles_revision filter 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.

patil-vipul avatar Dec 30 '24 14:12 patil-vipul