Global Styles: Fix push to global styles for 6.3.x#53624
Global Styles: Fix push to global styles for 6.3.x#53624tellthemachines merged 1 commit intowp/6.3from
Conversation
|
Size Change: +426 B (0%) Total Size: 1.46 MB
ℹ️ View Unchanged
|
aaronrobertshaw
left a comment
There was a problem hiding this comment.
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.
The original PR uses a new custom util (getValueFromObjectPath) to avoid the lodash use that was present in this file for 6.3.
tellthemachines
left a comment
There was a problem hiding this comment.
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: