-
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
First stab at sidebars_widgets-based widget management #24290
Merged
Merged
Changes from 18 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
649d666
First stab at sidebars_widgets based widget management
adamziel b1ca015
Render widgets screen based on sidebars endpoint
adamziel feedcbd
Fully functional blocks rendering
adamziel 46dc634
Add a scaffold of store-based saving
adamziel 560b6db
Sidebars API -based widget management
adamziel 32e025a
Entity-based save operation
adamziel 638dadf
Enable REST-based widgets save operation
adamziel 997a7f5
Display success/error notice after saving
adamziel c234c19
Add the experimental sidebars controller
adamziel 1267acc
Clean up unused apis
adamziel 2d1d2d8
Restore the widget-forms endpoint
adamziel 823d50d
Refactor widget-forms to widget-utils controller
adamziel 2857bc7
Make widget form and preview work
adamziel c38a77f
Remove $core_widgets = [] override
adamziel 362bc6e
Make the new widgets screen fully functional
adamziel 0c9ee1c
Remove obsolete changes
adamziel 84002c7
Remove unused code
adamziel 479b842
Restore the experimental customizer UI
adamziel 5329406
Lint PHP code
adamziel 9900983
Lint
adamziel 14cd40b
Add permissions_check
adamziel e1a145a
Define read / edit routes using a single declaration
adamziel 6234176
replace get_param with array syntax
adamziel 9fdc8ce
Add wp_slash to input widget settings
adamziel 102e09c
Use schema
adamziel 01b9d0d
lint
adamziel e788ff1
Use single, global editor instead of separate editors
adamziel 1ca58bb
Update lib/class-wp-rest-sidebars-controller.php
adamziel 89b7994
Update lib/class-wp-rest-widget-utils-controller.php
adamziel fa1c050
Update packages/edit-widgets/src/components/widget-areas-block-editor…
adamziel 9fc82ec
Remove lib/class-experimental-wp-widget-blocks-manager.php
adamziel 30b5b75
Clean up the endpoints
adamziel cd15be0
Invoke getWidgetAreas at the top level
adamziel 176cc3c
rename widgetArea entity to sidebars
adamziel 3f4fd5a
Enable the experiment code conditionally
adamziel 97c2b7a
Load Gutenberg styles on widgets.php
adamziel f3cf1ab
Make the API compatible with old-style widgets
adamziel 07db7d1
Clean up WP_REST_Widget_Utils_Controller
adamziel 13c3db0
revert code data layer change
adamziel 48c7c35
Add unit tests for the endpoints
adamziel 4dc08e0
Fix indexing bug
adamziel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It doesn't look like there is much functionality left in
lib/class-experimental-wp-widget-blocks-manager.php
. It's also not clear how the changes in this file would look when they're added to Core. Having a_Manager
class in Core is unprecedented.I'd suggest deleting
lib/class-experimental-wp-widget-blocks-manager.php
and moving the remaining functions into private functions in the REST API classes that use them.If we do want to add new widget functions to Core, they should exist in
compat.php
with a clear description of where they should land when merged downstream.