Skip to content
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 41 commits into from Aug 13, 2020
Merged
Show file tree
Hide file tree
Changes from all 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 Jul 30, 2020
b1ca015
Render widgets screen based on sidebars endpoint
adamziel Jul 31, 2020
feedcbd
Fully functional blocks rendering
adamziel Jul 31, 2020
46dc634
Add a scaffold of store-based saving
adamziel Jul 31, 2020
560b6db
Sidebars API -based widget management
adamziel Aug 4, 2020
32e025a
Entity-based save operation
adamziel Aug 4, 2020
638dadf
Enable REST-based widgets save operation
adamziel Aug 4, 2020
997a7f5
Display success/error notice after saving
adamziel Aug 5, 2020
c234c19
Add the experimental sidebars controller
adamziel Aug 5, 2020
1267acc
Clean up unused apis
adamziel Aug 5, 2020
2d1d2d8
Restore the widget-forms endpoint
adamziel Aug 5, 2020
823d50d
Refactor widget-forms to widget-utils controller
adamziel Aug 5, 2020
2857bc7
Make widget form and preview work
adamziel Aug 5, 2020
c38a77f
Remove $core_widgets = [] override
adamziel Aug 5, 2020
362bc6e
Make the new widgets screen fully functional
adamziel Aug 5, 2020
0c9ee1c
Remove obsolete changes
adamziel Aug 5, 2020
84002c7
Remove unused code
adamziel Aug 5, 2020
479b842
Restore the experimental customizer UI
adamziel Aug 6, 2020
5329406
Lint PHP code
adamziel Aug 6, 2020
9900983
Lint
adamziel Aug 6, 2020
14cd40b
Add permissions_check
adamziel Aug 6, 2020
e1a145a
Define read / edit routes using a single declaration
adamziel Aug 6, 2020
6234176
replace get_param with array syntax
adamziel Aug 6, 2020
9fdc8ce
Add wp_slash to input widget settings
adamziel Aug 6, 2020
102e09c
Use schema
adamziel Aug 6, 2020
01b9d0d
lint
adamziel Aug 6, 2020
e788ff1
Use single, global editor instead of separate editors
adamziel Aug 6, 2020
1ca58bb
Update lib/class-wp-rest-sidebars-controller.php
adamziel Aug 7, 2020
89b7994
Update lib/class-wp-rest-widget-utils-controller.php
adamziel Aug 7, 2020
fa1c050
Update packages/edit-widgets/src/components/widget-areas-block-editor…
adamziel Aug 7, 2020
9fc82ec
Remove lib/class-experimental-wp-widget-blocks-manager.php
adamziel Aug 7, 2020
30b5b75
Clean up the endpoints
adamziel Aug 7, 2020
cd15be0
Invoke getWidgetAreas at the top level
adamziel Aug 7, 2020
176cc3c
rename widgetArea entity to sidebars
adamziel Aug 7, 2020
3f4fd5a
Enable the experiment code conditionally
adamziel Aug 7, 2020
97c2b7a
Load Gutenberg styles on widgets.php
adamziel Aug 7, 2020
f3cf1ab
Make the API compatible with old-style widgets
adamziel Aug 7, 2020
07db7d1
Clean up WP_REST_Widget_Utils_Controller
adamziel Aug 7, 2020
13c3db0
revert code data layer change
adamziel Aug 7, 2020
48c7c35
Add unit tests for the endpoints
adamziel Aug 7, 2020
4dc08e0
Fix indexing bug
adamziel Aug 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions gutenberg.php
Expand Up @@ -181,3 +181,14 @@ function register_site_icon_url( $response ) {
}

add_filter( 'rest_index', 'register_site_icon_url' );

/**
* Registers the WP_Widget_Block widget
*/
function gutenberg_register_widgets() {
if ( gutenberg_is_experiment_enabled( 'gutenberg-widget-experiments' ) ) {
register_widget( 'WP_Widget_Block' );
}
}

add_action( 'widgets_init', 'gutenberg_register_widgets' );