Make WordPress Core


Ignore:
Timestamp:
06/01/2020 12:25:34 PM (5 years ago)
Author:
gziolo
Message:

Add fields to WP_Block_Type

As part of #47620 and the RFC for block registeration. Server registered blocks are missing some fields. These changeset includes them.

Props spacedmonkey, aduth.

Fixes #48529.

File:
1 edited

Legend:

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

    r47808 r47875  
    22352235    $block_registry = WP_Block_Type_Registry::get_instance();
    22362236    $blocks         = array();
    2237     $keys_to_pick   = array( 'title', 'description', 'icon', 'category', 'keywords', 'parent', 'supports', 'attributes', 'styles' );
     2237    $keys_to_pick   = array( 'title', 'description', 'icon', 'category', 'keywords', 'parent', 'supports', 'attributes', 'styles', 'textdomain', 'example' );
    22382238
    22392239    foreach ( $block_registry->get_all_registered() as $block_name => $block_type ) {
Note: See TracChangeset for help on using the changeset viewer.