Skip to content

Blockbase: style variation opt-out not always working #8636

@pkevan

Description

Quick summary

When running the Gutenberg plugin within a site, the functionality to opt-out of style variations from a parent theme no longer functions as expected.

This is due to the WP_REST_Global_Styles_Controller now being WP_REST_Global_Styles_Controller_Gutenberg and therefore https://github.com/Automattic/themes/blob/trunk/blockbase/inc/rest-api.php#L25 is not longer triggered.

Steps to reproduce

Themes which use optOutOfParentStyleVariations should not show parent theme style variations.

Possible to reproduce on Simple sites, and presumably Atomic but could not test this easily.

Site owner impact

More than 60% of the total website/platform users

Severity

Major

What other impact(s) does this issue have?

No response

If a workaround is available, please outline it here.

No response

Platform (Simple and/or Atomic)

Simple, Atomic

Metadata

Assignees

Type

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions