[wp-trac] [WordPress Trac] #51162: Consider adding "offline" as environment on WP_ENVIRONMENT_TYPE
WordPress Trac
noreply at wordpress.org
Sun Oct 18 06:46:41 UTC 2020
#51162: Consider adding "offline" as environment on WP_ENVIRONMENT_TYPE
-------------------------------------+-----------------------------
Reporter: johnbillion | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Bootstrap/Load | Version: 5.5
Severity: normal | Resolution:
Keywords: 2nd-opinion needs-patch | Focuses:
-------------------------------------+-----------------------------
Changes (by azaozz):
* keywords: 2nd-opinion => 2nd-opinion needs-patch
Comment:
Replying to [comment:4 johnbillion]:
> I agree with @roytanck, offline status is distinct from the environment
type. I can definitely see a use for an offline flag
> ...
> Do you think this needs to be tied to the environment type?
Right, don't think this belongs together with the environment types, it is
rather an "characteristic" of the environment. 'Local', 'development',
maybe even 'staging' may not have net access depending on the
server/firewall/permissions setup.
In that terms another constant makes most sense, perhaps something like
`WP_OFFLINE`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51162#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list