[wp-trac] [WordPress Trac] #47005: check if SERVER_PROTOCOL is empty in load.php
WordPress Trac
noreply at wordpress.org
Fri May 24 01:46:24 UTC 2019
#47005: check if SERVER_PROTOCOL is empty in load.php
----------------------------+-----------------------------
Reporter: malthert | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.3
Component: Bootstrap/Load | Version: 5.2
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
----------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"45400" 45400]:
{{{
#!CommitTicketReference repository="" revision="45400"
Bootstrap/Load: In `wp_get_server_protocol()`, check if
`$_SERVER['SERVER_PROTOCOL']` is defined, to avoid a notice in CLI
context.
Props thakkarhardik, malthert.
Fixes #47005.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47005#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list