Make WordPress Core

Changes between Initial Version and Version 4 of Ticket #55902


Ignore:
Timestamp:
08/03/2022 01:46:17 PM (2 years ago)
Author:
sabernhardt
Comment:

A patch would need to consider the reasoning behind calling the function early: to avoid loading all block assets in the footer (see GB28319).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55902

    • Property Keywords needs-patch added; changes-requested removed
    • Property Component changed from General to Themes
  • Ticket #55902 – Description

    initial v4  
    33I am from Pagelayer team.
    44
    5 And we have checked and found that in the “wp-includes/template-canvas.php” file, you have called the function “get_the_block_template_html()” above the header that breaks the flow of the calling hooks like (‘get_header, wp_enqueue_scripts, wp_header’).
     5And we have checked and found that in the `wp-includes/template-canvas.php` file, you have called the function `get_the_block_template_html()` above the header that breaks the flow of the calling hooks like (`get_header`, `wp_enqueue_scripts`, `wp_header`).
    66
    7 For example, If we add any “the_content” hook inside the “wp_enqueue_scripts” hook, then the “the_content” hook not working properly.
     7For example, If we add any `the_content` hook inside the `wp_enqueue_scripts` hook, then the `the_content` hook not working properly.
    88
    99Please check and try fix the issue ASAP if possible.