Skip to content

backport per-block custom CSS changes - #3977

Closed
aristath wants to merge 4 commits into
WordPress:trunkfrom
aristath:backport/per-block-custom-css
Closed

aristath wants to merge 4 commits into
WordPress:trunkfrom
aristath:backport/per-block-custom-css

Conversation

@aristath

@aristath aristath commented Feb 3, 2023

Copy link
Copy Markdown
Member

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.

Comment thread src/wp-includes/class-wp-theme-json.php Resolved

@mukeshpanchal27 mukeshpanchal27 left a comment

Copy link
Copy Markdown
Member

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.

Comment thread src/wp-includes/class-wp-theme-json.php Resolved
Comment on lines +1013 to +1015
* @param string $selector The selector to nest.
*
* @return string The processed CSS.

Copy link
Copy Markdown
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

Mamaduka commented Feb 3, 2023

Copy link
Copy Markdown
Member

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

@felixarntz felixarntz left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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