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

WordPress Trac noreply at wordpress.org
Tue Sep 26 16:17:33 UTC 2023


#59452: Templates: Deprecate _inject_theme_attribute_in_block_template_content().
-----------------------------+------------------------------
 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        |     Focuses:
-----------------------------+------------------------------
Changes (by Bernhard Reiter):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56719" 56719]:
 {{{
 #!CommitTicketReference repository="" revision="56719"
 Templates: Deprecate _inject_theme_attribute_in_block_template_content.

 It can be replaced by passing
 `_inject_theme_attribute_in_template_part_block` as second argument to
 `traverse_and_serialize_blocks()`.

 Per WordPress 6.4 Beta 1, there aren't going to be any more calls in Core
 to `_inject_theme_attribute_in_block_template_content()`.

 Note that `_inject_theme_attribute_in_block_template_content` has always
 had `@access private` set in its PHPDoc.

 Props gziolo.
 Fixes #59452.
 }}}

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


More information about the wp-trac mailing list