Make WordPress Core


Ignore:
Timestamp:
06/26/2020 01:31:11 PM (6 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/archives.php

    r46586 r48177  
    117117 */
    118118function register_block_core_archives() {
    119         register_block_type(
    120                 'core/archives',
     119        register_block_type_from_metadata(
     120                __DIR__ . '/archives',
    121121                array(
    122                         'attributes'      => array(
    123                                 'align'             => array(
    124                                         'type' => 'string',
    125                                         'enum' => array( 'left', 'center', 'right', 'wide', 'full' ),
    126                                 ),
    127                                 'className'         => array(
    128                                         'type' => 'string',
    129                                 ),
    130                                 'displayAsDropdown' => array(
    131                                         'type'    => 'boolean',
    132                                         'default' => false,
    133                                 ),
    134                                 'showPostCounts'    => array(
    135                                         'type'    => 'boolean',
    136                                         'default' => false,
    137                                 ),
    138                         ),
    139122                        'render_callback' => 'render_block_core_archives',
    140123                )
Note: See TracChangeset for help on using the changeset viewer.