Changeset 57377 for trunk/src/wp-includes/blocks/post-terms.php
- Timestamp:
- 01/29/2024 09:04:18 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/post-terms.php
r56710 r57377 60 60 61 61 /** 62 * Registers the `core/post-terms` block on the server. 62 * Returns the available variations for the `core/post-terms` block. 63 * 64 * @return array The available variations for the block. 63 65 */ 64 function register_block_core_post_terms() {66 function build_post_term_block_variations() { 65 67 $taxonomies = get_taxonomies( 66 68 array( … … 104 106 } 105 107 108 return array_merge( $built_ins, $custom_variations ); 109 } 110 111 /** 112 * Registers the `core/post-terms` block on the server. 113 */ 114 function register_block_core_post_terms() { 106 115 register_block_type_from_metadata( 107 116 __DIR__ . '/post-terms', 108 117 array( 109 'render_callback' => 'render_block_core_post_terms',110 'variation s' => array_merge( $built_ins, $custom_variations ),118 'render_callback' => 'render_block_core_post_terms', 119 'variation_callback' => 'build_post_term_block_variations', 111 120 ) 112 121 );
Note: See TracChangeset
for help on using the changeset viewer.