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/categories.php

    r46586 r48177  
    9090 */
    9191function register_block_core_categories() {
    92     register_block_type(
    93         'core/categories',
     92    register_block_type_from_metadata(
     93        __DIR__ . '/categories',
    9494        array(
    95             'attributes'      => array(
    96                 'align'             => array(
    97                     'type' => 'string',
    98                     'enum' => array( 'left', 'center', 'right', 'wide', 'full' ),
    99                 ),
    100                 'className'         => array(
    101                     'type' => 'string',
    102                 ),
    103                 'displayAsDropdown' => array(
    104                     'type'    => 'boolean',
    105                     'default' => false,
    106                 ),
    107                 'showHierarchy'     => array(
    108                     'type'    => 'boolean',
    109                     'default' => false,
    110                 ),
    111                 'showPostCounts'    => array(
    112                     'type'    => 'boolean',
    113                     'default' => false,
    114                 ),
    115             ),
    11695            'render_callback' => 'render_block_core_categories',
    11796        )
Note: See TracChangeset for help on using the changeset viewer.