-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] Block Style VariationsIssues or PRs that are related to the style variations for blocksIssues or PRs that are related to the style variations for blocks[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
The styles for block style variations are not visible in the editor for anyone without the edit_theme_options
capability, so anyone but administrators.
They are loaded in the frontend but not in the backend.
Looking at the browser console one can see errors wit the REST API, but only in WP 6.6.1 without Gutenberg. With Gutenberg I don't see those errors, but the behavior and display of the blocks in the editor still has the same bug.
Step-by-step reproduction instructions
- Create a user with any role that doesn't have
edit_theme_options
, e.g.editor
. - Open a post and insert a button with a block style variation, e.g.
core/button
. - Apply a block style variation. You will not see the corresponding styles.
- Save and open the post in the frontend and see the style.
Screenshots, screen recording, code snippet
Bildschirmaufzeichnung.vom.2024-08-23.17.49.21.webm
REST API errors in WP 6.6.1 without Gutenberg
Environment info
- WordPress 6.6.1
- with and without Gutenberg 19.0.0
- Twenty Twenty-Four theme
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
Metadata
Metadata
Assignees
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] Block Style VariationsIssues or PRs that are related to the style variations for blocksIssues or PRs that are related to the style variations for blocks[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended