#59452 closed enhancement (fixed)
Templates: Deprecate _inject_theme_attribute_in_block_template_content().
Reported by: | Bernhard Reiter | Owned by: | Bernhard Reiter |
---|---|---|---|
Milestone: | 6.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description (last modified by )
I'd like to deprecate _inject_theme_attribute_in_block_template_content()
, as it can be replaced by using _inject_theme_attribute_in_template_part_block()
in combination with traverse_and_serialize_blocks()
on the parsed template blocks instead. Note that the function has always had @access private
set in its PHPDoc.
The only code in Core that it's called from is synced from Gutenberg (dynamic blocks' PHP code).
Change History (8)
This ticket was mentioned in PR #5307 on WordPress/wordpress-develop by @Bernhard Reiter.
12 months ago
#1
- Keywords has-patch added
#3
@
12 months ago
- Description modified (diff)
- Summary changed from Templates: Deprecate _inject_theme_attribute_in_template_part_block(). to Templates: Deprecate _inject_theme_attribute_in_block_template_content().
@Bernhard Reiter commented on PR #5307:
12 months ago
#5
Committed to Core in https://core.trac.wordpress.org/changeset/56719.
This ticket was mentioned in PR #5317 on WordPress/wordpress-develop by @Bernhard Reiter.
12 months ago
#6
Move the now-deprecated function _inject_theme_attribute_in_block_template_content
from wp-includes/block-template-utils.php
to wp-includes/deprecated.php
.
Trac ticket: https://core.trac.wordpress.org/ticket/59452
@Bernhard Reiter commented on PR #5317:
12 months ago
#8
Committed to Core in https://core.trac.wordpress.org/changeset/56722/.
I'd like to deprecate
_inject_theme_attribute_in_template_part_block()
, as it can be replaced by using_inject_theme_attribute_in_template_part_block()
in combination withtraverse_and_serialize_blocks()
on the parsed template blocks instead.The only code in Core that it's called from is synced from Gutenberg (dynamic blocks' PHP code).
Trac ticket: https://core.trac.wordpress.org/ticket/59452