From 135c75c396cdc9a572528cd2ed73421717ff3772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Tue, 10 Nov 2020 20:26:08 +0000 Subject: [PATCH] Editor: Display short description from block directory in results. Props dd32, ryelle. Fixes #51212. Built from https://develop.svn.wordpress.org/trunk@49559 git-svn-id: http://core.svn.wordpress.org/trunk@49297 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../endpoints/class-wp-rest-block-directory-controller.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php index e76940f7b7..c3cf4938a2 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php @@ -125,7 +125,7 @@ class WP_REST_Block_Directory_Controller extends WP_REST_Controller { $block = array( 'name' => $block_data['name'], 'title' => ( $block_data['title'] ? $block_data['title'] : $plugin['name'] ), - 'description' => wp_trim_words( $plugin['description'], 30, '...' ), + 'description' => wp_trim_words( $plugin['short_description'], 30, '...' ), 'id' => $plugin['slug'], 'rating' => $plugin['rating'] / 20, 'rating_count' => (int) $plugin['num_ratings'], diff --git a/wp-includes/version.php b/wp-includes/version.php index d5751293f1..6bfc394cbd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta3-49558'; +$wp_version = '5.6-beta3-49559'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.