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

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

Merged
merged 9 commits into from Nov 29, 2021

Conversation

oandregal
Copy link
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 Pull request that needs to be backported to the WordPress major release that's currently in beta Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json labels Nov 29, 2021
@oandregal
Copy link
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.

@oandregal oandregal merged commit d335e0e into trunk Nov 29, 2021
@oandregal oandregal deleted the update/theme-json-class branch November 29, 2021 21:35
@github-actions github-actions bot added this to the Gutenberg 12.1 milestone Nov 29, 2021
@noisysocks noisysocks removed the Backport to WP Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Dec 6, 2021
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.

None yet

2 participants