[wp-trac] [WordPress Trac] #55023: get_header() notice: Theme without header.php is deprecated

WordPress Trac noreply at wordpress.org
Sat Sep 3 20:52:43 UTC 2022


#55023: get_header() notice: Theme without header.php is deprecated
--------------------------+------------------------
 Reporter:  kpdaa         |       Owner:  audrasjb
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  6.1
Component:  Themes        |     Version:  5.9
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  multisite
--------------------------+------------------------

Comment (by lgedeon):

 If block themes do not require header.php and footer.php, then they must
 have an alternative. If that alternative is in place then the
 compatibility files will never be reached and so they are still
 deprecated.

 The solution of only showing the deprecation for classic themes misses the
 point that these files should not be used for either block or classic
 themes. They contain hard-coded <hr /> tags and other content that does
 not make sense for block themes.

 These files should never be loaded. Deprecation is correct, but it needs
 to be expanded with an explanation of how block themes can avoid these
 files being loaded.

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


More information about the wp-trac mailing list