Docs: Clarify a comment about `wp_opcache_invalidate()` in `_copy_dir()`.
Follow-up to [48160]. See #52628. Built from https://develop.svn.wordpress.org/trunk@50460 git-svn-id: http://core.svn.wordpress.org/trunk@50071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
630a593765
commit
69a0a68817
|
@ -937,7 +937,7 @@ function update_core( $from, $to ) {
|
||||||
* Import $wp_version, $required_php_version, and $required_mysql_version from the new version.
|
* 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.
|
* 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';
|
$versions_file = trailingslashit( $wp_filesystem->wp_content_dir() ) . 'upgrade/version-current.php';
|
||||||
if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $versions_file ) ) {
|
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' ) ) {
|
if ( function_exists( 'wp_opcache_invalidate' ) ) {
|
||||||
wp_opcache_invalidate( $to . $filename );
|
wp_opcache_invalidate( $to . $filename );
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue