[wp-trac] [WordPress Trac] #33161: Create a standard for defining and identifying site environment
WordPress Trac
noreply at wordpress.org
Tue May 26 22:14:15 UTC 2020
#33161: Create a standard for defining and identifying site environment
--------------------------------+-----------------------------
Reporter: krogsgard | Owner: SergeyBiryukov
Type: enhancement | Status: accepted
Priority: normal | Milestone: 5.5
Component: Options, Meta APIs | Version: 4.2
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------------+-----------------------------
Comment (by audrasjb):
Replying to [comment:28 SergeyBiryukov]:
> How about:
> * `wp_get_environment_type()` for the function and filter name.
> * `WP_ENVIRONMENT_TYPE` for the constant name?
Indeed, in this case I think it's really necessary to use `wp_` prefix,
as there may be **a lot** of existing implementations.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33161#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list