Changeset 48177 for trunk/src/wp-includes/blocks/search.php
- Timestamp:
- 06/26/2020 01:31:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/search.php
r47636 r48177 68 68 */ 69 69 function register_block_core_search() { 70 register_block_type (71 'core/search',70 register_block_type_from_metadata( 71 __DIR__ . '/search', 72 72 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 ),94 73 'render_callback' => 'render_block_core_search', 95 74 )
Note: See TracChangeset
for help on using the changeset viewer.