[wp-trac] [WordPress Trac] #34868: Use unmodified $wp_version in wp-includes/update.php

WordPress Trac noreply at wordpress.org
Sun Dec 6 17:35:48 UTC 2015


#34868: Use unmodified $wp_version in wp-includes/update.php
-----------------------------+-----------------
 Reporter:  nacin            |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  4.5
Component:  Upgrade/Install  |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------
 [32635] (4.3) accidentally started globalizing `$wp_version` in
 `wp_version_check()` and related functions.

 What ends up happening is it becomes global, then including `wp-
 includes/version.php` actually overrides the global. Thus, the right
 information gets reported back to WordPress.org, and the rest of the
 pageload has an unadulterated `$wp_version`.

 We should still change this back to avoid stomping the global
 unnecessarily.

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


More information about the wp-trac mailing list