Make WordPress Core


Ignore:
Timestamp:
06/26/2020 01:31:11 PM (5 years ago)
Author:
ellatrix
Message:

Editor: update JavaScript packages

Also update default block categories

Props youknowriad, gziolo, aduth.
Fixes #50420, #50278.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/tag-cloud.php

    r46586 r48177  
    5252 */
    5353function register_block_core_tag_cloud() {
    54     register_block_type(
    55         'core/tag-cloud',
     54    register_block_type_from_metadata(
     55        __DIR__ . '/tag-cloud',
    5656        array(
    57             'attributes'      => array(
    58                 'align'         => array(
    59                     'type' => 'string',
    60                     'enum' => array( 'left', 'center', 'right', 'wide', 'full' ),
    61                 ),
    62                 'className'     => array(
    63                     'type' => 'string',
    64                 ),
    65                 'taxonomy'      => array(
    66                     'type'    => 'string',
    67                     'default' => 'post_tag',
    68                 ),
    69                 'showTagCounts' => array(
    70                     'type'    => 'boolean',
    71                     'default' => false,
    72                 ),
    73             ),
    7457            'render_callback' => 'render_block_core_tag_cloud',
    7558        )
Note: See TracChangeset for help on using the changeset viewer.