[wp-trac] [WordPress Trac] #58914: Full-site editing theme warning about missing header.php

WordPress Trac noreply at wordpress.org
Wed Jul 26 14:20:48 UTC 2023


#58914: Full-site editing theme warning about missing header.php
--------------------------+------------------------------
 Reporter:  Iulia Cazan   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  6.2.2
 Severity:  minor         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by rajinsharwar):

 I think, twenty twenty-three is a block theme. Can you check if using the
 below code resolves the warning you are getting?

 {{{#!php

 if( wp_is_block_theme() ) {
     block_template_part('header');
 }

 if( wp_is_block_theme() ) {
     block_template_part('footer');
 }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58914#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list