[wp-trac] [WordPress Trac] #58484: Always use wp_get_environment_type in all sources

WordPress Trac noreply at wordpress.org
Thu Jun 8 11:26:08 UTC 2023


#58484: Always use wp_get_environment_type in all sources
----------------------------+------------------------------
 Reporter:  ramon fincken   |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Bootstrap/Load  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+------------------------------

Comment (by ramon fincken):

 a small update on this, checked with @SergeyBiryukov

 this code is accurate meaning it is shown in the tools -> constants.

 I will just show the PHP constant which does not have a need to call
 wp_get_environment_type()

 However ... if you have defined WP_ENVIRONMENT_TYPE and it is empty this
 code will show "Undefined" while it is actually defined indeed.

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


More information about the wp-trac mailing list