Skip to content

Commit 5572a1d

Browse files
committed
Add 3rd arg to deprecation notice
1 parent 8cd9350 commit 5572a1d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/wp-includes/block-template-utils.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,14 +475,18 @@ function _flatten_blocks( &$blocks ) {
475475
* stylesheet as a theme attribute into each wp_template_part
476476
*
477477
* @since 5.9.0
478-
* @deprecated 6.4.0 Use _inject_theme_attribute_in_template_part_block() with traverse_and_serialize_blocks() instead.
478+
* @deprecated 6.4.0 Use traverse_and_serialize_blocks( parse_blocks( $template_content ), '_inject_theme_attribute_in_template_part_block' ) instead.
479479
* @access private
480480
*
481481
* @param string $template_content serialized wp_template content.
482482
* @return string Updated 'wp_template' content.
483483
*/
484484
function _inject_theme_attribute_in_block_template_content( $template_content ) {
485-
_deprecated_function( __FUNCTION__, '6.4.0' );
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+
);
486490

487491
$has_updated_content = false;
488492
$new_content = '';

0 commit comments

Comments
 (0)