[wp-trac] [WordPress Trac] #57487: Add support for "development mode"

WordPress Trac noreply at wordpress.org
Sat Jan 21 00:59:59 UTC 2023


#57487: Add support for "development mode"
-------------------------+-----------------------------
 Reporter:  azaozz       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------------

Comment (by azaozz):

 > There was a discussion in #51064 on the differences between local and
 development, perhaps it should be revisited.

 Yes, but unsure if this problem can be resolved by trying to figure out
 the differences or if there should be some. Truth is that anybody can
 develop on both local and remote WP installs. Don't see why this setting
 should be limiting.

 > Instead of checking for the development environment WordPress could use
 in_array( wp_get_environment_type(), array( 'development', 'local' ), true
 ).

 True, but then WP will end up with all sorts of `'development' AND
 'local'`, `'development' OR 'local'`, 'development' AND 'staging'`,  etc.
 Why the complexity?

 The problem with `wp_get_environment_type()` is that the types are not
 mutually-exclusive. Also, the intended use of the environment types seem
 more like "server settings", not "user intent". I.e. should a user be able
 to set `local` when WP is on a remote server? Should that affect/interfere
 with development mode?

 Those are probably the reasons why wp_get_environment_type() is used so
 little in core.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57487#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list