mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
REST API: Sort widget types by their id.
Fixes #53303. Props spacedmonkey. git-svn-id: https://develop.svn.wordpress.org/trunk@51882 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -237,6 +237,8 @@ class WP_REST_Widget_Types_Controller extends WP_REST_Controller {
|
||||
$widgets[ $widget['id'] ] = $widget;
|
||||
}
|
||||
|
||||
ksort( $widgets );
|
||||
|
||||
return $widgets;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user