[wp-trac] [WordPress Trac] #59460: Templates: Introduce _remove_theme_attribute_from_template_part_block function
WordPress Trac
noreply at wordpress.org
Tue Sep 26 15:41:48 UTC 2023
#59460: Templates: Introduce _remove_theme_attribute_from_template_part_block
function
-----------------------------+-----------------------------
Reporter: Bernhard Reiter | Owner: Bernhard Reiter
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.4
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
Introduce a `_remove_theme_attribute_from_template_part_block()` function
that can be used as a callback argument for
`traverse_and_serialize_block(s)` on a parsed block tree in order to
remove the `theme` attribute from all Template Part blocks found therein,
and deprecate `_remove_theme_attribute_in_block_template_content()`.
Counterpart to `_inject_theme_attribute_in_template_part_block` from
#59338 (which superseded
`_inject_theme_attribute_in_block_template_content`, deprecated in
#59452).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59460>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list