[wp-trac] [WordPress Trac] #59460: Templates: Introduce _remove_theme_attribute_from_template_part_block function
WordPress Trac
noreply at wordpress.org
Tue Sep 26 16:59:27 UTC 2023
#59460: Templates: Introduce _remove_theme_attribute_from_template_part_block
function
--------------------------------------+------------------------------
Reporter: Bernhard Reiter | Owner: Bernhard Reiter
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.4
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Changes (by Bernhard Reiter):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"56724" 56724]:
{{{
#!CommitTicketReference repository="" revision="56724"
Templates: Introduce _remove_theme_attribute_from_template_part_block.
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).
Props mukesh27.
Fixes #59460.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59460#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list