File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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 */
484484function _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 = '' ;
You can’t perform that action at this time.
0 commit comments