diff --git src/wp-admin/includes/class-core-upgrader.php src/wp-admin/includes/class-core-upgrader.php
index 7acbaaed49..2d3c4cbb85 100644
|
|
|
class Core_Upgrader extends WP_Upgrader { |
| 153 | 153 | return $working_dir; |
| 154 | 154 | } |
| 155 | 155 | |
| | 156 | /* |
| 156 | 157 | // Copy update-core.php from the new version into place. |
| 157 | 158 | if ( ! $wp_filesystem->copy( $working_dir . '/wordpress/wp-admin/includes/update-core.php', $wp_dir . 'wp-admin/includes/update-core.php', true ) ) { |
| 158 | 159 | $wp_filesystem->delete( $working_dir, true ); |
| … |
… |
class Core_Upgrader extends WP_Upgrader { |
| 160 | 161 | return new WP_Error( 'copy_failed_for_update_core_file', __( 'The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.' ), 'wp-admin/includes/update-core.php' ); |
| 161 | 162 | } |
| 162 | 163 | $wp_filesystem->chmod( $wp_dir . 'wp-admin/includes/update-core.php', FS_CHMOD_FILE ); |
| | 164 | */ |
| 163 | 165 | |
| 164 | 166 | wp_opcache_invalidate( ABSPATH . 'wp-admin/includes/update-core.php' ); |
| 165 | 167 | require_once ABSPATH . 'wp-admin/includes/update-core.php'; |
diff --git src/wp-admin/includes/update-core.php src/wp-admin/includes/update-core.php
index 6d9d243ddd..9d0452dbcb 100644
|
|
|
function update_core( $from, $to ) { |
| 946 | 946 | } |
| 947 | 947 | |
| 948 | 948 | $wp_filesystem->chmod( $versions_file, FS_CHMOD_FILE ); |
| | 949 | |
| | 950 | /* |
| | 951 | * `wp_opcache_invalidate()` only exists in WordPress 5.5 or later, |
| | 952 | * so don't run it when upgrading from older versions. |
| | 953 | */ |
| | 954 | if ( function_exists( 'wp_opcache_invalidate' ) ) { |
| | 955 | wp_opcache_invalidate( $versions_file ); |
| | 956 | } |
| | 957 | |
| 949 | 958 | require WP_CONTENT_DIR . '/upgrade/version-current.php'; |
| 950 | 959 | $wp_filesystem->delete( $versions_file ); |
| 951 | 960 | |
| … |
… |
function update_core( $from, $to ) { |
| 1117 | 1126 | $result = new WP_Error( 'copy_failed_for_version_file', __( 'The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.' ), 'wp-includes/version.php' ); |
| 1118 | 1127 | } |
| 1119 | 1128 | $wp_filesystem->chmod( $to . 'wp-includes/version.php', FS_CHMOD_FILE ); |
| | 1129 | |
| | 1130 | /* |
| | 1131 | * `wp_opcache_invalidate()` only exists in WordPress 5.5 or later, |
| | 1132 | * so don't run it when upgrading from older versions. |
| | 1133 | */ |
| | 1134 | if ( function_exists( 'wp_opcache_invalidate' ) ) { |
| | 1135 | wp_opcache_invalidate( $to . 'wp-includes/version.php' ); |
| | 1136 | } |
| 1120 | 1137 | } |
| 1121 | 1138 | |
| 1122 | 1139 | // Check to make sure everything copied correctly, ignoring the contents of wp-content. |
diff --git src/wp-includes/version.php src/wp-includes/version.php
index 566625f027..37d8cfba67 100644
|
|
|
|
| 13 | 13 | * |
| 14 | 14 | * @global string $wp_version |
| 15 | 15 | */ |
| 16 | | $wp_version = '5.8-alpha-50427-src'; |
| | 16 | $wp_version = '5.5-alpha-50427-src'; |
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. |
diff --git tools/local-env/php-config.ini tools/local-env/php-config.ini
index 1f385e924c..d8aa4622d1 100644
|
|
|
|
| 1 | 1 | upload_max_filesize = 1G |
| 2 | 2 | post_max_size = 1G |
| | 3 | opcache.enable = 1 |
| | 4 | opcache.validate_timestamps = 0 |