From bc052559e472ebb7eb17eed13f3a9680172dff97 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Wed, 11 Sep 2019 14:51:30 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@46091 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index 690759cf6f..7ff33e3bb8 100644 --- a/src/wp-admin/includes/post.php +++ b/src/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 ) {