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

WordPress Trac noreply at wordpress.org
Wed Jul 26 20:13:38 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 Iulia Cazan):

 Replying to [comment:1 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');
 > }
 > }}}

 Not sure I understand what you meant by that.

 The theme itself does not have a header.php file at all, this is the theme
 structure. https://imgur.com/45G7OkU

 To me, this looks like a bug, to get a warning about the theme not having
 a header.php file when the official theme does not have one. What am I
 missing?

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


More information about the wp-trac mailing list