[wp-trac] [WordPress Trac] #50896: Add filters to wp_get_environment_type()
    WordPress Trac 
    noreply at wordpress.org
       
    Fri Aug 14 14:35:26 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 crstauf):
 Replying to [comment:16 TimothyBlynJacobs]:
 > Lastly, I don't think distributing and mandating an mu-plugin be
 installed on dev sites is any easier
 Indeed it is easier, and not susceptible to user error: a lot of WordPress
 sites commit only the `wp-content` directory, which contains the `mu-
 plugin` directory, so any checkout is going to have the mu-plugin which
 dictates the environment type.
 > For this type of site, I think you'd be better off tracking the whole
 thing in git and having a wp-config-partial.php that defines the
 environment type by default.
 This doesn't work, because some local WordPress environment creators (like
 Local WP) define `wp-config.php` at environment creation, and so would
 still need manual intervention.
-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50896#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list