Changeset 31124 for trunk/src/wp-admin/includes/update-core.php
- Timestamp:
- 01/10/2015 05:56:45 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/update-core.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update-core.php
r31073 r31124 813 813 // Import $wp_version, $required_php_version, and $required_mysql_version from the new version 814 814 // $wp_filesystem->wp_content_dir() returned unslashed pre-2.8 815 global $wp_version, $required_php_version, $required_mysql_version; 816 815 817 $versions_file = trailingslashit( $wp_filesystem->wp_content_dir() ) . 'upgrade/version-current.php'; 816 818 if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $versions_file ) ) { … … 825 827 $php_version = phpversion(); 826 828 $mysql_version = $wpdb->db_version(); 827 $old_wp_version = $ GLOBALS['wp_version']; // The version of WordPress we're updating from829 $old_wp_version = $wp_version; // The version of WordPress we're updating from 828 830 $development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' ) ); // a dash in the version indicates a Development release 829 831 $php_compat = version_compare( $php_version, $required_php_version, '>=' );
Note: See TracChangeset
for help on using the changeset viewer.