Skip to content

Commit

Permalink
REST API: Remove duplicates in the widget types endpoint.
Browse files Browse the repository at this point in the history
Props noisysocks, spacedmonkey, imath, isabel_brison.
Fixes #53305.

Built from https://develop.svn.wordpress.org/trunk@51049


git-svn-id: http://core.svn.wordpress.org/trunk@50658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
TimothyBJacobs committed May 31, 2021
1 parent d2ef664 commit f3504cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ protected function get_widgets() {
}
$widget['classname'] = ltrim( $classname, '_' );

$widgets[] = $widget;
$widgets[ $widget['id'] ] = $widget;
}

return $widgets;
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-alpha-51048';
$wp_version = '5.8-alpha-51049';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit f3504cd

Please sign in to comment.