-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Global Styles: Fix push to global styles for 6.3.x #53624
Conversation
Size Change: +426 B (0%) Total Size: 1.46 MB
ℹ️ View Unchanged
|
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.
I've given this a test following the instructions in #51621 and I think it's ready for some reviews.
]; | ||
const value = presetAttributeValue | ||
? `var:preset|${ STYLE_PATH_TO_CSS_VAR_INFIX[ presetAttributeKey ] }|${ presetAttributeValue }` | ||
: get( attributes.style, path ); |
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.
The original PR uses a new custom util (getValueFromObjectPath
) to avoid the lodash use that was present in this file for 6.3.
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.
Thanks for the PR! Code looks good and the fix is working as expected ✅
I'm going to revert this PR temporarily so we can get a package update out with only the fixes for the editor crash issues, as per @azaozz's suggestion. Once that update is done, we can re-merge this so it goes into 6.3.2. |
This reverts commit 46dc7f0.
I just cherry-picked this PR to the bugfixes/wp-6.3.2 branch to get it included in the next minor release 🤞🏻 . |
Related:
What?
Brings the fixes for the "push to global styles" feature from #51621 to WP 6.3 for a point release.
Why?
Without these fixes the "push to global styles" feature is broken;
How?
Copies fixes from #51621 without the lodash removal, behaviors, etc.
Testing Instructions
In essence, ensure that: