diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php index 3940566467..82c3a5255e 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php @@ -237,6 +237,8 @@ class WP_REST_Widget_Types_Controller extends WP_REST_Controller { $widgets[ $widget['id'] ] = $widget; } + ksort( $widgets ); + return $widgets; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 48a68bd3d5..e790f801ce 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51881'; +$wp_version = '5.9-alpha-51882'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.