Changeset 17619
- Timestamp:
- 04/07/2011 10:04:45 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/update.php
r17618 r17619 24 24 return; 25 25 26 global $wp_version, $wpdb, $wp_local_package; 26 global $wpdb, $wp_local_package; 27 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 27 28 $php_version = phpversion(); 28 29 … … 120 121 */ 121 122 function wp_update_plugins() { 122 global $wp_version;123 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 123 124 124 125 if ( defined('WP_INSTALLING') ) … … 204 205 * @return mixed Returns null if update is unsupported. Returns false if check is too soon. 205 206 */ 206 function wp_update_themes( 207 global $wp_version;207 function wp_update_themes() { 208 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 208 209 209 210 if ( defined( 'WP_INSTALLING' ) ) … … 291 292 292 293 function _maybe_update_core() { 293 global $wp_version;294 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 294 295 295 296 $current = get_site_transient( 'update_core' );
Note: See TracChangeset
for help on using the changeset viewer.