From abed60bb5111eb46b49a92dc1879ef60a94247ea Mon Sep 17 00:00:00 2001 From: desrosj Date: Wed, 11 Sep 2019 14:52:56 +0000 Subject: [PATCH] Editor: Add missing block data fields for blocks registered server side. In [44122], the `styles` and `parent` block fields were omitted on accident. This change makes it possible to reuse them on the client. Props gziolo. Fixes #47017. Built from https://develop.svn.wordpress.org/trunk@46091 git-svn-id: http://core.svn.wordpress.org/trunk@45903 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 690759cf6f..7ff33e3bb8 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -2201,7 +2201,7 @@ function get_block_categories( $post ) { function get_block_editor_server_block_settings() { $block_registry = WP_Block_Type_Registry::get_instance(); $blocks = array(); - $keys_to_pick = array( 'title', 'description', 'icon', 'category', 'keywords', 'supports', 'attributes' ); + $keys_to_pick = array( 'title', 'description', 'icon', 'category', 'keywords', 'parent', 'supports', 'attributes', 'styles' ); foreach ( $block_registry->get_all_registered() as $block_name => $block_type ) { foreach ( $keys_to_pick as $key ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index ccafae8091..79d328136b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-46090'; +$wp_version = '5.3-alpha-46091'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.