[wp-trac] [WordPress Trac] #47154: Prevent "Call to undefined function: get_header()" error in theme files
WordPress Trac
noreply at wordpress.org
Tue May 11 17:00:55 UTC 2021
#47154: Prevent "Call to undefined function: get_header()" error in theme files
---------------------------+------------------------------
Reporter: devonto | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 5.1.1
Severity: minor | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by SergeyBiryukov):
Hi there, welcome to WordPress Trac!
Thanks for the ticket, sorry it took so long for someone to get back to
you.
I think the reason this has not seen any traction yet is because these
fatal errors are considered a server configuration issue rather than a
security issue per the [https://make.wordpress.org/core/handbook/testing
/reporting-security-vulnerabilities/ Security FAQ]:
> ''' Why are there path disclosures when directly loading certain
files?'''
> This is a server configuration problem. Never enable `display_errors` on
a production site.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47154#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list