-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Block Style Variations CSS not loaded for non-admins #64755
Copy link
Copy link
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
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
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
The styles for block style variations are not visible in the editor for anyone without the
edit_theme_optionscapability, 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
edit_theme_options, e.g.editor.core/button.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
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.