[wp-trac] [WordPress Trac] #55792: Block theme loading mechanism

WordPress Trac noreply at wordpress.org
Mon May 23 13:43:53 UTC 2022


#55792: Block theme loading mechanism
--------------------------+-----------------------------
 Reporter:  jivansoft     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  major         |   Keywords:
  Focuses:  template      |
--------------------------+-----------------------------
 Hi,

 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').

 For example, If we add any "the_content" hook inside the
 "wp_enqueue_scripts" hook, then the "the_content" hook does not apply for
 the get post content.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55792>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list