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

Theme JSON: Extract util to get valid block style variations #61030

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

aaronrobertshaw
Copy link
Contributor

Related:

Note: The changes in this PR are being split out from #57908 to make that more manageable

What?

Extracts the repeated collection of valid block style variations into a util that can be reused or updated in a single place for future work around extending block style variations.

Why?

Minor improvement to maintainability and readability.

Testing Instructions

npm run test:unit:php:base -- --filter WP_Theme_JSON_Gutenberg_Test

Screenshot

Screenshot 2024-04-24 at 5 41 53 PM

@aaronrobertshaw aaronrobertshaw added [Type] Code Quality Issues or PRs that relate to code quality Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json labels Apr 24, 2024
@aaronrobertshaw aaronrobertshaw requested a review from talldan April 24, 2024 07:45
@aaronrobertshaw aaronrobertshaw self-assigned this Apr 24, 2024
Copy link

github-actions bot commented Apr 24, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

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

Seems fine to me.

@aaronrobertshaw aaronrobertshaw merged commit f071978 into trunk Apr 25, 2024
66 of 67 checks passed
@aaronrobertshaw aaronrobertshaw deleted the refactor/valid-variations-theme-json-util branch April 25, 2024 23:59
@github-actions github-actions bot added this to the Gutenberg 18.3 milestone Apr 26, 2024
@aaronrobertshaw
Copy link
Contributor Author

Backport for these PHP changes can be found at: WordPress/wordpress-develop#6479

@aaronrobertshaw aaronrobertshaw added the Needs PHP backport Needs PHP backport to Core label May 20, 2024
pento pushed a commit to WordPress/wordpress-develop that referenced this pull request May 29, 2024
Extracts the repeated collection of valid block style variations into a util that can be reused or updated in a single place for future work around extending block style variations.

Backports WordPress/gutenberg#61030.

Props aaronrobertshaw, audrasjb.

Fixes #61121.



git-svn-id: https://develop.svn.wordpress.org/trunk@58228 602fd350-edb4-49c9-b593-d223f7449a82
markjaquith pushed a commit to markjaquith/WordPress that referenced this pull request May 29, 2024
Extracts the repeated collection of valid block style variations into a util that can be reused or updated in a single place for future work around extending block style variations.

Backports WordPress/gutenberg#61030.

Props aaronrobertshaw, audrasjb.

Fixes #61121.


Built from https://develop.svn.wordpress.org/trunk@58228


git-svn-id: http://core.svn.wordpress.org/trunk@57691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
github-actions bot pushed a commit to platformsh/wordpress-performance that referenced this pull request May 29, 2024
Extracts the repeated collection of valid block style variations into a util that can be reused or updated in a single place for future work around extending block style variations.

Backports WordPress/gutenberg#61030.

Props aaronrobertshaw, audrasjb.

Fixes #61121.


Built from https://develop.svn.wordpress.org/trunk@58228


git-svn-id: https://core.svn.wordpress.org/trunk@57691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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 Needs PHP backport Needs PHP backport to Core [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants