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

    r46586 r48177  
    5353 */
    5454function register_block_core_calendar() {
    55     register_block_type(
    56         'core/calendar',
     55    register_block_type_from_metadata(
     56        __DIR__ . '/calendar',
    5757        array(
    58             'attributes'      => array(
    59                 'align'     => array(
    60                     'type' => 'string',
    61                     'enum' => array( 'left', 'center', 'right', 'wide', 'full' ),
    62                 ),
    63                 'className' => array(
    64                     'type' => 'string',
    65                 ),
    66                 'month'     => array(
    67                     'type' => 'integer',
    68                 ),
    69                 'year'      => array(
    70                     'type' => 'integer',
    71                 ),
    72             ),
    7358            'render_callback' => 'render_block_core_calendar',
    7459        )
Note: See TracChangeset for help on using the changeset viewer.