[wp-trac] [WordPress Trac] #33161: Create a standard for defining and identifying site environment

WordPress Trac noreply at wordpress.org
Tue Jun 30 20:57:05 UTC 2020


#33161: Create a standard for defining and identifying site environment
--------------------------------------+-----------------------------
 Reporter:  krogsgard                 |       Owner:  SergeyBiryukov
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  5.5
Component:  Options, Meta APIs        |     Version:  4.2
 Severity:  normal                    |  Resolution:
 Keywords:  needs-dev-note has-patch  |     Focuses:
--------------------------------------+-----------------------------

Comment (by Clorith):

 All these extra values, outside `staging`, `development` and `production`
 feel like very user-specific cases to be, and I'd rather see them be added
 through other means in the cases where they are needed.

 As for setting `WP_DEBUG` based on the environment, I'm thinking it would
 be nice if development had `WP_DEBUG` enabled by default (of course
 overruled by using the constant manually), and disabled on `production`,
 which is already the default, so I guess really only the `development` one
 would make sense.

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


More information about the wp-trac mailing list