-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Adapt Gutenberg code to work after global styles lands in core #32059
Conversation
So far, this PR only deals with renaming things. It works with WordPress/wordpress-develop#1262 although it's not the final shape things should be. Would it be helpful to land this as it is so the next changes are isolated and easier to read? |
Size Change: 0 B Total Size: 1.86 MB ℹ️ View Unchanged
|
3a2107c
to
b239dd6
Compare
} | ||
|
||
add_action( 'init', 'gutenberg_experimental_global_styles_register_user_cpt' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These have been moved below for clarity.
76a75fd
to
e5874d6
Compare
5a890b3
to
ac5de88
Compare
Nice catch @ntsekouras This is something that we need to be updated in WordPress core, this is the PR WordPress/wordpress-develop#1289 This is what happened:
I didn't run into this because I tested before 3 and you tested after. |
This PR is ready but I still see that there's a performance e2e tests failure. Sharing in case it rings any bell as to how fix it:
|
ac5de88
to
c8d8f22
Compare
I managed to run the test locally using the latest wp-env ( |
I'm not sure what's happening for the performance test but it feels to me that having that one failing on trunk is better than having all the e2e tests failing, so I'm merging. |
It's normal, because the test compares to trunk, which was broken. |
Co-authored-by: ntsekouras <ntsekouras@outlook.com>
Adding this to |
Co-authored-by: ntsekouras <ntsekouras@outlook.com>
Cherry-picked to the Gutenberg 10.7 release. |
Companion for WordPress/wordpress-develop#1262
Adapts Gutenberg code to work once we shipped "global styles" to WordPress core.
Testing scenarios
__experimentalFeatures
data for the block editor wordpress-develop#1262Instructions: