mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Templates: Deprecate _inject_theme_attribute_in_block_template_content.
It can be replaced by passing `_inject_theme_attribute_in_template_part_block` as second argument to `traverse_and_serialize_blocks()`. Per WordPress 6.4 Beta 1, there aren't going to be any more calls in Core to `_inject_theme_attribute_in_block_template_content()`. Note that `_inject_theme_attribute_in_block_template_content` has always had `@access private` set in its PHPDoc. Props gziolo. Fixes #59452. git-svn-id: https://develop.svn.wordpress.org/trunk@56719 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -311,6 +311,13 @@ class Tests_Block_Template_Utils extends WP_UnitTestCase {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 59452
|
||||
*
|
||||
* @covers ::_inject_theme_attribute_in_block_template_content
|
||||
*
|
||||
* @expectedDeprecated _inject_theme_attribute_in_block_template_content
|
||||
*/
|
||||
public function test_inject_theme_attribute_in_block_template_content() {
|
||||
$theme = get_stylesheet();
|
||||
$content_without_theme_attribute = '<!-- wp:template-part {"slug":"header","align":"full", "tagName":"header","className":"site-header"} /-->';
|
||||
|
||||
Reference in New Issue
Block a user