Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Add comment to Remove filter to allow WP variables after min version is 5.8. #36281

Merged

Conversation

jorgefilipecosta
Copy link
Member

On Gutenberg, we had a filter to allow wp variables to be used on a specific set of CSS properties. This filter is not needed anymore since WordPress 5.8 started to allow any CSS variable in any property WordPress/wordpress-develop@8e498a8314.

@jorgefilipecosta jorgefilipecosta added the Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json label Nov 6, 2021
@Mamaduka
Copy link
Member

Mamaduka commented Nov 6, 2021

The plugin still supports WP 5.7. Maybe we should add the note to remove the filter once Gutenberg requires 5.8?

@jorgefilipecosta jorgefilipecosta force-pushed the remove/unnecessary-filter-to-allow-wp-variables branch from f0efc87 to 6a128ae Compare November 6, 2021 18:07
@jorgefilipecosta
Copy link
Member Author

Hi @Mamaduka, good catch. I updated the PR just to contain a note, it makes things easier as with that we know we don't need to backport to the core.

@jorgefilipecosta jorgefilipecosta changed the title Update: Remove unnecessary filter to allow wp variables. Chore: Add comment to Remove filter to allow WP variables after min version is 5.8. Nov 7, 2021
@jorgefilipecosta jorgefilipecosta merged commit 54f1b76 into trunk Nov 7, 2021
@jorgefilipecosta jorgefilipecosta deleted the remove/unnecessary-filter-to-allow-wp-variables branch November 7, 2021 23:10
@github-actions github-actions bot added this to the Gutenberg 12.0 milestone Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants