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

Move gutenberg_get_global_styles function #50596

Merged
merged 1 commit into from
May 15, 2023

Conversation

oandregal
Copy link
Member

@oandregal oandregal commented May 12, 2023

Follow-up to #50310
Related #50597

What

This PR moves gutenberg_get_global_styles from: lib/compat/wordpress-6.3/get-global-styles-and-settings.php to lib/global-styles-and-settings.php

Why?

The reason is that while the global styles APIs continue to be developed, we need the public API to use the gutenberg classes.

How?

Move the function from one file to another verbatim.

Testing Instructions

Verify automated test pass.

From: lib/compat/wordpress-6.3/get-global-styles-and-settings.php
To: lib/global-styles-and-settings.php

The reason is that while the global styles APIs continue to be
developed we need the plugin classes to be in use by the public API.
@oandregal oandregal requested a review from Mamaduka May 12, 2023 14:35
@oandregal oandregal self-assigned this May 12, 2023
@oandregal oandregal added the Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json label May 12, 2023
Copy link
Contributor

@aaronrobertshaw aaronrobertshaw left a comment

Choose a reason for hiding this comment

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

Thanks for putting this one together @oandregal

LGTM 🚢

@oandregal oandregal merged commit c6ed0e4 into trunk May 15, 2023
@oandregal oandregal deleted the move/get-global-styles-function branch May 15, 2023 07:13
@github-actions github-actions bot added this to the Gutenberg 15.9 milestone May 15, 2023
@ramonjd ramonjd added the Needs PHP backport Needs PHP backport to Core label Jun 5, 2023
@oandregal
Copy link
Member Author

This one doesn't need to be backported, as it only moves code around for gutenberg purposes. The relevant changes are included in this other PR to backport #50366

@oandregal oandregal removed the Needs PHP backport Needs PHP backport to Core label Jun 5, 2023
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants