Changeset 56719
- Timestamp:
- 09/26/2023 04:17:18 PM (22 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r56649 r56719 476 476 * 477 477 * @since 5.9.0 478 * @deprecated 6.4.0 Use traverse_and_serialize_blocks( parse_blocks( $template_content ), '_inject_theme_attribute_in_template_part_block' ) instead. 478 479 * @access private 479 480 * … … 482 483 */ 483 484 function _inject_theme_attribute_in_block_template_content( $template_content ) { 485 _deprecated_function( 486 __FUNCTION__, 487 '6.4.0', 488 'traverse_and_serialize_blocks( parse_blocks( $template_content ), "_inject_theme_attribute_in_template_part_block" )' 489 ); 490 484 491 $has_updated_content = false; 485 492 $new_content = ''; -
trunk/tests/phpunit/tests/block-template-utils.php
r56644 r56719 312 312 } 313 313 314 /** 315 * @ticket 59452 316 * 317 * @covers ::_inject_theme_attribute_in_block_template_content 318 * 319 * @expectedDeprecated _inject_theme_attribute_in_block_template_content 320 */ 314 321 public function test_inject_theme_attribute_in_block_template_content() { 315 322 $theme = get_stylesheet();
Note: See TracChangeset
for help on using the changeset viewer.