Skip to content

Core palette opt out not working in site editor #36852

@Andrew-Starr

Description

@Andrew-Starr

Description

With the new corePalette and coreGradients keys, themes can opt out of displaying the core color palette.

This works correctly in the post editor, but in the site editor the core color palette and gradients are still available.

Step-by-step reproduction instructions

Add the opt outs to theme.json as detailed in #36492 and #36407

"settings": {
		"color": {
			"corePalette": false,
			"coreGradients": false

Navigate to 'Posts' > 'Edit' to edit a post, and the core color palette is correctly removed from view.

Navigate to 'Appearance' > 'Styles' > 'Colors' > 'Elements' > 'Background', and see that the core color pallete and gradients are still available. This should not be the case

Screenshots, screen recording, code snippet

No response

Environment info

WP 5.8.2
Gutenberg 12.0.1

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions