Make WordPress Core


Ignore:
Timestamp:
09/26/2023 04:17:18 PM (15 months ago)
Author:
Bernhard Reiter
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/block-template-utils.php

    r56644 r56719  
    312312    }
    313313
     314    /**
     315     * @ticket 59452
     316     *
     317     * @covers ::_inject_theme_attribute_in_block_template_content
     318     *
     319     * @expectedDeprecated _inject_theme_attribute_in_block_template_content
     320     */
    314321    public function test_inject_theme_attribute_in_block_template_content() {
    315322        $theme                           = get_stylesheet();
Note: See TracChangeset for help on using the changeset viewer.