[wp-trac] [WordPress Trac] #59452: Templates: Deprecate _inject_theme_attribute_in_block_template_content(). (was: Templates: Deprecate _inject_theme_attribute_in_template_part_block().)

WordPress Trac noreply at wordpress.org
Tue Sep 26 16:15:41 UTC 2023


#59452: Templates: Deprecate _inject_theme_attribute_in_block_template_content().
-----------------------------+------------------------------
 Reporter:  Bernhard Reiter  |       Owner:  Bernhard Reiter
     Type:  enhancement      |      Status:  assigned
 Priority:  normal           |   Milestone:  6.4
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------
Description changed by Bernhard Reiter:

Old description:

> 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 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).

New description:

 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).

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59452#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list