[wp-trac] [WordPress Trac] #50896: Add filters to wp_get_environment_type()

WordPress Trac noreply at wordpress.org
Wed Aug 12 11:54:38 UTC 2020


#50896: Add filters to wp_get_environment_type()
----------------------------+------------------------------
 Reporter:  crstauf         |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Bootstrap/Load  |     Version:  5.5
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+------------------------------

Comment (by TimothyBlynJacobs):

 I’m not sure this is a good idea. AFAICT, this change would make it so
 that the environment type could be `production` before mu plugins are
 completely loaded, but then something completely different after mu
 plugins are loaded. That is the kind of inconsistency that caching the
 value was supposed to avoid.

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


More information about the wp-trac mailing list