Skip to content

Update the WP_Theme_JSON_Gutenberg class to be like the core one#36973

Merged
oandregal merged 9 commits intotrunkfrom
update/theme-json-class
Nov 29, 2021
Merged

Update the WP_Theme_JSON_Gutenberg class to be like the core one#36973
oandregal merged 9 commits intotrunkfrom
update/theme-json-class

Conversation

@oandregal
Copy link
Copy Markdown
Member

@oandregal oandregal commented Nov 29, 2021

Related WordPress/wordpress-develop#1967

This PR makes sure that the order of constants, methods, etc. as well as the PHPDoc comments are the same between the Gutenberg's lib/class-wp-theme-json-gutenberg.php and WordPress core wp-includes/class-wp-theme-json.php.

This way the backports are way easier and require minimal manual intervention.

@oandregal oandregal self-assigned this Nov 29, 2021
@oandregal oandregal added [Type] Code Quality Issues or PRs that relate to code quality Backport to WP Beta/RC Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json labels Nov 29, 2021
@oandregal
Copy link
Copy Markdown
Member Author

It's not necessary to backport this PR to WordPRess core, because it brings changes from there. However, we need to backport it to Gutenberg's wp/trunk branch.

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.

2 participants