Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Conversation

@pkevan
Copy link
Contributor

@pkevan pkevan commented Jan 31, 2025

As described in #8671, the option to opt-out of parent styles individually via excludedParentStyleVariations custom option currently doesn't work - this allow the functionality to be corrected.

@pkevan pkevan added [Type] Bug Something isn't working [Theme] Blockbase labels Jan 31, 2025
@github-actions
Copy link
Contributor

Preview changes

I've detected changes to the following themes in this PR: Blockbase.
You can preview these changes by following the links below:

I will update this comment with the latest preview links as you push more changes to this PR.

Note

The preview sites are created using WordPress Playground. You can add content, edit settings, and test the themes as you would on a real site, but please note that changes are not saved between sessions.

$handler_method = isset( $handler['callback'][1] ) ? $handler['callback'][1] : null;
$remove_variations = wp_get_global_settings( array( 'custom', 'excludedParentStyleVariations' ) );

if ( is_a( $handler_class, 'WP_REST_Global_Styles_Controller_Gutenberg' ) && 'get_theme_items' === $handler_method && ! empty( $remove_variations ) ) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to change to allow for when the Gutenberg plugin is active, and not, as per #8638

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done via: 9f43603

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

[Theme] Blockbase [Type] Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants