#59460 closed enhancement (fixed)
Templates: Introduce _remove_theme_attribute_from_template_part_block function
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.4 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | has-patch has-unit-tests |
| Focuses: | Cc: |
Description
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).
Change History (3)
This ticket was mentioned in PR #5316 on WordPress/wordpress-develop by @Bernhard Reiter.
3 years ago
#1
- Keywords has-patch has-unit-tests added
@Bernhard Reiter commented on PR #5316:
3 years ago
#3
Committed to Core in https://core.trac.wordpress.org/changeset/56724.
Note: See
TracTickets for help on using
tickets.
Introduce a
_remove_theme_attribute_from_template_part_block()function that can be used as a callback argument fortraverse_and_serialize_block(s)on a parsed block tree in order to remove thethemeattribute from all Template Part blocks found therein, and deprecate_remove_theme_attribute_in_block_template_content().Counterpart to
_inject_theme_attribute_in_template_part_blockfrom #59338 (which superseded_inject_theme_attribute_in_block_template_content, deprecated in #59452).Trac ticket: https://core.trac.wordpress.org/ticket/59460