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

Global styles code quality refactoring #62299

Merged
merged 7 commits into from
Jun 5, 2024

Conversation

ajlende
Copy link
Contributor

@ajlende ajlende commented Jun 4, 2024

What?

Follow-up to fix some code quality issues from WordPress/wordpress-develop#6616.

Why?

Code quality.

How?

Testing Instructions

Testing Instructions for Keyboard

Screenshots or screencast

@ajlende ajlende 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 Jun 4, 2024
@ajlende ajlende self-assigned this Jun 4, 2024
Copy link

github-actions bot commented Jun 4, 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: ajlende <ajlende@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@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

github-actions bot commented Jun 4, 2024

This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress.

If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged.

If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack.

Thank you! ❤️

View changed files
❔ lib/class-wp-theme-json-gutenberg.php
❔ lib/class-wp-theme-json-resolver-gutenberg.php
❔ lib/class-wp-theme-json-schema-gutenberg.php
Copy link
Member

@ramonjd ramonjd left a comment

Choose a reason for hiding this comment

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

Smoke tested the changes in a similar fashion to the Core PR testing.

Thanks a lot for the backport!

🙇🏻

@ramonjd ramonjd merged commit b762683 into trunk Jun 5, 2024
67 checks passed
@ramonjd ramonjd deleted the fix/assorted-theme-json-v3-feedback branch June 5, 2024 00:56
@github-actions github-actions bot added this to the Gutenberg 18.6 milestone Jun 5, 2024
@oandregal
Copy link
Member

@ellatrix Alex prepared the backport at WordPress/wordpress-develop#6731 and I merged it at https://core.trac.wordpress.org/changeset/58339 so this doesn't have the "Backport" label. I presume you only use the label for tracking the remaining PRs to be backported, right? Let me know if there's another use and whether this PR should have it.

patil-vipul pushed a commit to patil-vipul/gutenberg that referenced this pull request Jun 17, 2024
* Update no break comments

* Update docs for migrate_v2_to_v3

* Remove unnecessary isset checks

* Refactor default presets code for get_theme_data

* Remove unnecessary isset checks

* Fix doc comment for set_spacing_sizes

* Add backport changelog

Co-authored-by: ajlende <ajlende@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
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 [Type] Code Quality Issues or PRs that relate to code quality
3 participants