-
Notifications
You must be signed in to change notification settings - Fork 193
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
Fix: add missing form builder registrar dependencies for WP 6.4 compatibility #7028
Fix: add missing form builder registrar dependencies for WP 6.4 compatibility #7028
Conversation
…port with local function
Thanks! @jonwaldstein! Are we using Lodash anywhere else? |
Yes we are, for debouncing and some other utility things. It's not a problem that we're using it as it's still available as a WP dependency. |
But... then why isn't |
Then why are we defining the |
That's what I initially did and then the dependency part. I decided to leave it though because all the import does is return an empty function and I don't want to rely on lodash to supply that. |
@jonwaldstein I get your point, but I'd prefer to continue using the documented, shared function, as simple as it is. So either we should have our own, shared |
@JasonTheAdams when lodash removes noop from their library because they realize its stupid, i'm going to hold you to this f2a9177 |
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.
Deal! 😁
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.
Passed manual QA tests.
Description
In WP 6.4, some blocks were breaking. This was due to a missing lodash function that should have been loaded by WordPress deps. It turns out we were not defining the dependencies for the form builder registrar script. This PR adds the deps during enqueue.
As a side note, Gutenberg has been moving away from lodash in their packages.
Related:
Affects
WP 6.4 compatability
Visuals
N/A
Testing Instructions
Make sure block are working as expected on latest version of WP and 6.4
Pre-review Checklist
@unreleased
tags included in DocBlocks