Make WordPress Core


Ignore:
Timestamp:
09/11/2019 02:51:30 PM (5 years ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r45932 r46091  
    22022202    $block_registry = WP_Block_Type_Registry::get_instance();
    22032203    $blocks         = array();
    2204     $keys_to_pick   = array( 'title', 'description', 'icon', 'category', 'keywords', 'supports', 'attributes' );
     2204    $keys_to_pick   = array( 'title', 'description', 'icon', 'category', 'keywords', 'parent', 'supports', 'attributes', 'styles' );
    22052205
    22062206    foreach ( $block_registry->get_all_registered() as $block_name => $block_type ) {
Note: See TracChangeset for help on using the changeset viewer.