-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Global styles controllers: extend with WP_REST_Posts_Controller and WP_REST_Revisions_Controller #6573
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
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @jonnynews. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
Closing in favour of #6105 |
WP_REST_Global_Styles_Revisions_Controller extends WP_REST_Controller
…ted from WP_REST_Revisions_Controller tests
…-revisions-controller.php Co-authored-by: Mukesh Panchal <[email protected]>
Excluding order and order by from the collection query params Comment
… individual items.
Updating generated API file
removing __construct, get_item and update_item in favour of the parent class methods Add $allow_batch property, setting it to false
Co-authored-by: Jonny Harris <[email protected]>
This commit adds the 'allow_batch' option to several API endpoints in the WordPress API generated tests fixture. The 'allow_batch' option has been set to false for version 1, effectively disabling batch requests for these endpoints, as a safety measure.
Bumped version from 6.5 to 6.6 in annotations
0fa1286 to
18ef3eb
Compare
tests/phpunit/tests/rest-api/rest-global-styles-revisions-controller.php
Outdated
Show resolved
Hide resolved
tests/phpunit/tests/rest-api/rest-global-styles-revisions-controller.php
Outdated
Show resolved
Hide resolved
|
Committed in https://core.trac.wordpress.org/changeset/58225 |
This change:
WP_REST_Global_Styles_Revisions_ControllerwithWP_REST_Revisions_ControllerWP_REST_Global_Styles_ControllerwithWP_REST_Posts_ControllerAs part of this work, the PR also:
Testing
Head over to the site editor, make a few changes to global styles.
2024-05-18.09.57.01.mp4
You can test the responses in the editor as well by using the API in the browser console.
Trac ticket: https://core.trac.wordpress.org/ticket/60131