Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#55317 closed defect (bug) (duplicate)

get_header() function does not work with block based themes

Reported by: randhirexpresstech's profile randhirexpresstech Owned by:
Milestone: Priority: normal
Severity: blocker Version: 5.9.1
Component: Themes Keywords:
Focuses: template Cc:

Description

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."

Change History (1)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Themes
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #55023.

Note: See TracTickets for help on using tickets.