[wp-trac] [WordPress Trac] #50992: Consider removing the ability to alter the list of environment types
WordPress Trac
noreply at wordpress.org
Thu Aug 27 00:08:16 UTC 2020
#50992: Consider removing the ability to alter the list of environment types
----------------------------------------+---------------------
Reporter: johnbillion | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5.1
Component: Bootstrap/Load | Version: 5.5
Severity: normal | Resolution:
Keywords: needs-patch needs-dev-note | Focuses:
----------------------------------------+---------------------
Comment (by elrae):
The fact that there isn't consensus on what else we should or shouldn't
add (local, offline, etc) to me indicates why we need this filter. This
isn't something people can easily add/edit/delete, if someone is changing
the environment types and adding new ones they're likely a seasoned
developer and know exactly what they're doing. Plugins don't have to worry
about trying to handling any number of environment types. I don't expect
Yoast or any other plugin to know or care what my environment type is, and
it shouldn't be doing anything different. By the logic on this ticket why
offer _any_ hooks / filters where users could potentially alter and break
functionality? Developers should exercise caution any time they write
custom code. I'm strongly against removing more flexibility and this
change.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50992#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list