[wp-trac] [WordPress Trac] #33161: Create a standard for defining and identifying site environment
WordPress Trac
noreply at wordpress.org
Wed May 20 10:52:23 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 SergeyBiryukov):
This seems to have consensus, my only concern is that `get_environment()`
function name seems too general, I would think it returns something like
`phpinfo()` or Site Health info. I also think we'd want to add a `wp_`
prefix to avoid a potential clash with any custom functions.
How about:
* `wp_get_environment_type()` for the function and filter name.
* `WP_ENVIRONMENT_TYPE` for the constant name?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33161#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list