[wp-trac] [WordPress Trac] #55317: get_header() function does not work with block based themes

WordPress Trac noreply at wordpress.org
Fri Mar 4 07:09:19 UTC 2022


#55317: get_header() function does not work with block based themes
--------------------------------+-----------------------------
 Reporter:  randhirexpresstech  |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  General             |    Version:  5.9.1
 Severity:  blocker             |   Keywords:
  Focuses:  template            |
--------------------------------+-----------------------------
 Block based themes like Twenty Twenty-Two do not contain php templates.
 Since,get_header() function use php header templates, it generate a
 warning
 "Deprecated: Theme without header.php is deprecated since version 3.0.0
 with no alternative available. Please include a header.php template in
 your theme."

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


More information about the wp-trac mailing list