Changeset 48177 for trunk/src/wp-includes/blocks/archives.php
- Timestamp:
- 06/26/2020 01:31:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/archives.php
r46586 r48177 117 117 */ 118 118 function register_block_core_archives() { 119 register_block_type (120 'core/archives',119 register_block_type_from_metadata( 120 __DIR__ . '/archives', 121 121 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 ),139 122 'render_callback' => 'render_block_core_archives', 140 123 )
Note: See TracChangeset
for help on using the changeset viewer.