[wp-trac] [WordPress Trac] #55023: get_header() notice: Theme without header.php is deprecated
WordPress Trac
noreply at wordpress.org
Thu Sep 1 17:26:26 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
--------------------------+------------------------
Changes (by sabernhardt):
* keywords: needs-patch => has-patch
Old description:
> 1) i had install 2022 theme on one of the multisite (site.alakh.co.in)
> 2) Overall theme works well. Just found one issue.
> 3) on my site's register/signup page (https://site.alakh.co.in/wp-
> signup.php). i see following error in header and footer.
> error msg:
> 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. in /home/alakhco/public_html/site/wp-includes/functions.php
> on line 5516
>
> kinldy help me in solving this issue.
New description:
1) i had install 2022 theme on one of the multisite (site.alakh.co.in)
2) Overall theme works well. Just found one issue.
3) on my site's register/signup page (https://site.alakh.co.in/wp-
signup.php). i see following error in header and footer.
error msg:
`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. in .../wp-includes/functions.php on line 5516`
kindly help me in solving this issue.
--
Comment:
If someone could make a patch that fetches the block theme's header and
footer templates, that would be better than mine. But the deprecation
notice is not meant for block themes, so it should not display.
Perhaps a patch like this could be committed (and backported?), and then
discussion about a better method could continue on GB33989.
Also, I'm curious why wp-activate.php did not show the warning even though
it uses the same theme-compat files as wp-signup.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55023#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list