Changeset 59180 for trunk/src/wp-admin/includes/class-core-upgrader.php
- Timestamp:
- 10/05/2024 10:49:43 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-core-upgrader.php
r59159 r59180 13 13 * It allows for WordPress to upgrade itself in combination with 14 14 * the wp-admin/includes/update-core.php file. 15 * 16 * Note: newly introduced functions and methods cannot be used here. 17 * All functions must be present in both the previous version being upgraded from, 18 * and the later version that's being installed (e.g. when rolling back Core) 19 * as this file is used in both. 15 20 * 16 21 * @since 2.8.0 … … 392 397 * @since 3.7.0 393 398 * 399 * @global string $wp_version The WordPress version string. 394 400 * @global string $wp_local_package Locale code of the package. 395 401 * … … 397 403 */ 398 404 public function check_files() { 399 global $wp_local_package; 400 $wp_version = wp_get_wp_version(); 405 global $wp_version, $wp_local_package; 401 406 402 407 $checksums = get_core_checksums( $wp_version, isset( $wp_local_package ) ? $wp_local_package : 'en_US' );
Note: See TracChangeset
for help on using the changeset viewer.