diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php index e4fdf469f8..899317fc8b 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php @@ -321,6 +321,9 @@ class WP_REST_Widgets_Controller extends WP_REST_Controller { ); $_REQUEST = $_POST; + /** This action is documented in wp-admin/widgets-form.php */ + do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base ); + $callback = $wp_registered_widget_updates[ $id_base ]['callback']; $params = $wp_registered_widget_updates[ $id_base ]['params']; diff --git a/wp-includes/version.php b/wp-includes/version.php index 5297c32f39..b75cc9346e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-51059'; +$wp_version = '5.8-alpha-51060'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.