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

backport per-block custom CSS changes #3977

Closed

Conversation

aristath
Copy link
Member

@aristath aristath commented Feb 3, 2023

Backports WordPress/gutenberg#46571

This is a continuation of #3896
That PR included a call to the process_blocks_custom_css method, but the method itself was not included.
This PR back ports that method, and its related tests.

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


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.

Copy link
Member

@mukeshpanchal27 mukeshpanchal27 left a comment

Choose a reason for hiding this comment

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

Thanks @aristath, Left nit-pick feedback.

src/wp-includes/class-wp-theme-json.php Show resolved Hide resolved
Comment on lines 1013 to 1015
* @param string $selector The selector to nest.
*
* @return string The processed CSS.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* @param string $selector The selector to nest.
*
* @return string The processed CSS.
* @param string $selector The selector to nest.
* @return string The processed CSS.

@Mamaduka
Copy link
Member

Mamaduka commented Feb 3, 2023

It looks like we missed the undefined method usage in #3896. This PR should fix that.

See https://github.com/WordPress/wordpress-develop/pull/3896/files#diff-e12c3008d747d1bec5be9927c5e7b1ced0a88641abe52c278d495da936714817R1026

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

🤦 for missing this

@aristath Great catch, thanks for the fix!

@felixarntz
Copy link
Member

@felixarntz felixarntz closed this Feb 3, 2023
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.

4 participants