[wp-trac] [WordPress Trac] #56751: Add wp_get_environment_type() to update.php checks (core, plugins, themes)

WordPress Trac noreply at wordpress.org
Thu Oct 6 22:50:42 UTC 2022


#56751: Add wp_get_environment_type() to update.php checks (core, plugins, themes)
--------------------------+------------------------------------------------
 Reporter:                |      Owner:  (none)
  johnjamesjacoby         |
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:                |    Version:  5.5
  Upgrade/Install         |
 Severity:  normal        |   Keywords:  2nd-opinion needs-patch needs-docs
  Focuses:                |
--------------------------+------------------------------------------------
 While researching #meta6511 I noticed when WordPress checks for updates to
 itself, plugins, or themes, it does not send to `api.wordpress.org` what
 type of environment that it is:

 {{{
 array(
         'local',
         'development',
         'staging',
         'production',
 )
 }}}
 These are filterable, too.

 A few community members have questioned (in that ticket, Slack,
 Twitter...) whether non-production sites have the potential to influence
 installation counts.

 If WordPress sent the environment type, it could be aggregated over time
 and used later to more accurately respond to that question, perhaps even
 reported back if it is eventually deemed useful or actionable.

 I can imagine it being useful to myself, so I'm making this ticket to
 suggest it.

 I am choosing version 5.5 because that is when environment types were
 added.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56751>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list