Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56394, comment 4


Ignore:
Timestamp:
08/17/2022 01:37:53 AM (2 years ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56394, comment 4

    initial v1  
    44
    55`locate_block_template()`:
    6 1. Sets `$_wp_current_template_content` to the contents of the block template and returns `wp-includes/template-canvas.php`.
     61. Sets the `$_wp_current_template_content` global to the contents of the block template and returns `wp-includes/template-canvas.php`.
    772. `wp-includes/template-canvas.php` calls `get_the_block_template_html()`.
    883. `get_the_block_template_html()` makes use of the `$_wp_current_template_content` global variable and returns the generated template markup.