Changeset 56644 for trunk/src/wp-includes/block-template-utils.php
- Timestamp:
- 09/21/2023 08:32:52 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/block-template-utils.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r56621 r56644 516 516 * 517 517 * @param array $block a parsed block. 518 * @return array Updated block.519 */ 520 function _inject_theme_attribute_in_template_part_block( $block ) {518 * @return void 519 */ 520 function _inject_theme_attribute_in_template_part_block( &$block ) { 521 521 if ( 522 522 'core/template-part' === $block['blockName'] && … … 525 525 $block['attrs']['theme'] = get_stylesheet(); 526 526 } 527 return $block;528 527 } 529 528
Note: See TracChangeset
for help on using the changeset viewer.