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

    r47636 r48177  
    6868 */
    6969function register_block_core_search() {
    70     register_block_type(
    71         'core/search',
     70    register_block_type_from_metadata(
     71        __DIR__ . '/search',
    7272        array(
    73             'attributes'      => array(
    74                 'align'       => array(
    75                     'type' => 'string',
    76                     'enum' => array( 'left', 'center', 'right', 'wide', 'full' ),
    77                 ),
    78                 'className'   => array(
    79                     'type' => 'string',
    80                 ),
    81                 'label'       => array(
    82                     'type'    => 'string',
    83                     'default' => __( 'Search' ),
    84                 ),
    85                 'placeholder' => array(
    86                     'type'    => 'string',
    87                     'default' => '',
    88                 ),
    89                 'buttonText'  => array(
    90                     'type'    => 'string',
    91                     'default' => __( 'Search' ),
    92                 ),
    93             ),
    9473            'render_callback' => 'render_block_core_search',
    9574        )
Note: See TracChangeset for help on using the changeset viewer.