Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #56923


Ignore:
Timestamp:
10/27/2022 09:31:36 PM (20 months ago)
Author:
sabernhardt
Comment:

Someone from the release squad could move this to the 6.1 milestone, but I can put in the minor.

Adding that condition removes the extra query from Twenty Seventeen.

The build_template_part_block_instance_variations() function was introduced in r54257.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56923

    • Property Keywords has-patch added
    • Property Priority changed from normal to high
    • Property Milestone changed from Awaiting Review to 6.1.1
  • Ticket #56923 – Description

    initial v2  
    1 register_block_core_template_part functions calls, build_template_part_block_variations -> build_template_part_block_instance_variations ->
    2 get_block_templates.
     1`register_block_core_template_part` functions calls, `build_template_part_block_variations` -> `build_template_part_block_instance_variations` ->
     2`get_block_templates`.
    33
    4 This calls WP_Query and gets ALL posts of post type `wp_template_part`. This happens on classic themes that do not even support theme parts.
     4This calls `WP_Query` and gets ALL posts of post type `wp_template_part`. This happens on classic themes that do not even support theme parts.