Skip to content

Allow parentheses in safecss_filter_attr#1260

Open
aristath wants to merge 4 commits intoWordPress:masterfrom
aristath:fix/46197
Open

Allow parentheses in safecss_filter_attr#1260
aristath wants to merge 4 commits intoWordPress:masterfrom
aristath:fix/46197

Conversation

@aristath
Copy link
Copy Markdown
Member

@aristath aristath commented May 17, 2021

This patch allows using calc() and var() in CSS sanitized using the safecss_filter_attr function.

Trac ticket: https://core.trac.wordpress.org/ticket/46197

This also fixes WordPress/gutenberg#31740 in Gutenberg, as well as https://core.trac.wordpress.org/ticket/46498


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant