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 59873974e0..9c0837644b 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 @@ -214,11 +214,11 @@ class WP_REST_Widget_Types_Controller extends WP_REST_Controller { $widget['is_multi'] = (bool) $widget_object; if ( isset( $widget['name'] ) ) { - $widget['name'] = html_entity_decode( $widget['name'] ); + $widget['name'] = html_entity_decode( $widget['name'], ENT_QUOTES, get_bloginfo( 'charset' ) ); } if ( isset( $widget['description'] ) ) { - $widget['description'] = html_entity_decode( $widget['description'] ); + $widget['description'] = html_entity_decode( $widget['description'], ENT_QUOTES, get_bloginfo( 'charset' ) ); } unset( $widget['callback'] ); diff --git a/wp-includes/version.php b/wp-includes/version.php index d84800b7d1..d18b29ef6a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-beta2-51182'; +$wp_version = '5.8-beta2-51183'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.