Changeset 48177 for trunk/src/wp-includes/blocks/categories.php
- Timestamp:
- 06/26/2020 01:31:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/categories.php
r46586 r48177 90 90 */ 91 91 function register_block_core_categories() { 92 register_block_type (93 'core/categories',92 register_block_type_from_metadata( 93 __DIR__ . '/categories', 94 94 array( 95 'attributes' => array(96 'align' => array(97 'type' => 'string',98 'enum' => array( 'left', 'center', 'right', 'wide', 'full' ),99 ),100 'className' => array(101 'type' => 'string',102 ),103 'displayAsDropdown' => array(104 'type' => 'boolean',105 'default' => false,106 ),107 'showHierarchy' => array(108 'type' => 'boolean',109 'default' => false,110 ),111 'showPostCounts' => array(112 'type' => 'boolean',113 'default' => false,114 ),115 ),116 95 'render_callback' => 'render_block_core_categories', 117 96 )
Note: See TracChangeset
for help on using the changeset viewer.