diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php index bbf233eb70..6d9d243ddd 100644 --- a/wp-admin/includes/update-core.php +++ b/wp-admin/includes/update-core.php @@ -937,7 +937,7 @@ function update_core( $from, $to ) { * Import $wp_version, $required_php_version, and $required_mysql_version from the new version. * DO NOT globalise any variables imported from `version-current.php` in this function. * - * BC Note: $wp_filesystem->wp_content_dir() returned unslashed pre-2.8 + * BC Note: $wp_filesystem->wp_content_dir() returned unslashed pre-2.8. */ $versions_file = trailingslashit( $wp_filesystem->wp_content_dir() ) . 'upgrade/version-current.php'; if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $versions_file ) ) { @@ -1373,7 +1373,10 @@ function _copy_dir( $from, $to, $skip_list = array() ) { } } - // `wp_opcache_invalidate()` only exists in WordPress 5.5, so don't run it when upgrading to 5.5. + /* + * `wp_opcache_invalidate()` only exists in WordPress 5.5 or later, + * so don't run it when upgrading from older versions. + */ if ( function_exists( 'wp_opcache_invalidate' ) ) { wp_opcache_invalidate( $to . $filename ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index ce9104c5c1..b51870c79f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50458'; +$wp_version = '5.8-alpha-50460'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.