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

    r46586 r48177  
    3434 */
    3535function register_block_core_block() {
    36     register_block_type(
    37         'core/block',
     36    register_block_type_from_metadata(
     37        __DIR__ . '/block',
    3838        array(
    39             'attributes'      => array(
    40                 'ref' => array(
    41                     'type' => 'number',
    42                 ),
    43             ),
    4439            'render_callback' => 'render_block_core_block',
    4540        )
Note: See TracChangeset for help on using the changeset viewer.