-
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
Block Bindings: Register bindings sources in widgets screens #65937
Block Bindings: Register bindings sources in widgets screens #65937
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
The only remaining place I saw where |
Size Change: +116 B (+0.01%) Total Size: 1.77 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.
Thank you for the quick fix 👍🏻
e06e3ca
to
ced8b9e
Compare
…ss#65937) * Register sources in customize-widgets * Register sources in edit-widgets Co-authored-by: SantosGuillamot <[email protected]> Co-authored-by: gziolo <[email protected]>
What?
As reported here, I'm registering the core sources and bootstrapping the server ones in the widgets screens.
Why?
They should be available in that place as well.
How?
Just using the core functions to do so.
Testing Instructions
This one is a bit tricky to test because post meta fields are not available in the widgets context, custom sources bindings can't be created through the UI yet, and the widgets screens don't support the "Code Editor" I believe.
Test Widgets screen
5. Go to Appearance -> Widgets, and paste the copied block into any widget.
6. Check that the "Custom Source" label is shown. Previously, it showed the "Fallback" value.
Test Customize Widgets screen
5. Go to Appearance -> Customize -> Widgets, and paste the copied block into any widget.
6. Check that the "Custom Source" label is shown. Previously, it showed the "Fallback" value.