-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Mobile] Block Editor Settings Endpoint - Update to return resolved values #54215
base: trunk
Are you sure you want to change the base?
Conversation
…yles to return transformed values
…ugin version for feature compatibility and deprecations
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/experimental/block-editor-settings-mobile.php ❔ lib/experimental/class-wp-rest-block-editor-settings-controller.php ❔ lib/load.php |
This endpoint still under the experimental folder and it does not need to be synced to Core. |
Flaky tests detected in 947dac2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6326125744
|
In progress...
What?
This is a follow-up to the recent changes in #50484. It adds an option to return global style values already resolved, omitting the CSS variables.
Why?
We currently parse CSS values manually every time the mobile editor is opened. This creates additional load, particularly on slower devices. Retrieving the resolved values will expedite editor loading times.
How?
Parameters have been added to
gutenberg_get_global_styles
to return the resolved values.Additionally,
gutenbergVersion
has been introduced. This is crucial for feature synchronization with the user's current Gutenberg plugin, especially given the slow update rollouts for mobile apps. This will help prevent breakages in unsupported features.Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast