Skip to content

Global styles code quality refactoring#62299

Merged
ramonjd merged 7 commits into
trunkfrom
fix/assorted-theme-json-v3-feedback
Jun 5, 2024
Merged

Global styles code quality refactoring#62299
ramonjd merged 7 commits into
trunkfrom
fix/assorted-theme-json-v3-feedback

Conversation

@ajlende

@ajlende ajlende commented Jun 4, 2024

Copy link
Copy Markdown
Contributor

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
@github-actions

github-actions Bot commented Jun 4, 2024

Copy link
Copy Markdown

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.

@github-actions

github-actions Bot commented Jun 4, 2024

Copy link
Copy Markdown

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

@ramonjd ramonjd 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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants