wordpress-develop/tests/qunit
Jonny Harris 85576726b9 REST API: Refactor global styles endpoints in REST API to register with post type.
Updated the global styles endpoints in the REST API to extend from existing posts and revisions controllers. This reduces duplicated code and inconsistencies. The revisions controller is now a subclass of the WP_REST_Revisions_Controller. Related redundant methods were removed and schema generation and collection parameters were adjusted to suit the global styles context. Updated permission checks, constructor, and collection parameters accordingly. This change allows for easy override of these classes using the `register_post_type_args` filter. 

Props ramonopoly, spacedmonkey, mukesh27.
Fixes #60131.

git-svn-id: https://develop.svn.wordpress.org/trunk@57624 602fd350-edb4-49c9-b593-d223f7449a82
2024-02-13 14:07:38 +00:00
..
fixtures REST API: Refactor global styles endpoints in REST API to register with post type. 2024-02-13 14:07:38 +00:00
wp-admin/js Menus: Add audible notice on menu item add or remove. 2021-11-15 19:58:04 +00:00
wp-includes/js Build/Test Tools: Switch back to running the PHPUnit test suite against the src directory instead of build. 2021-02-26 14:07:53 +00:00
.jshintrc Build/Test Tools: Restore the QUnit global in JSHint config for QUnit. 2020-09-15 10:07:29 +00:00
index.html Media: Change alt attribute field to textarea in media library. 2022-09-20 04:00:35 +00:00