WordPress.org

Make WordPress Core

Changeset 50460


Ignore:
Timestamp:
03/01/2021 10:36:29 AM (6 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Clarify a comment about wp_opcache_invalidate() in _copy_dir().

Follow-up to [48160].

See #52628.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update-core.php

    r50149 r50460  
    938938     * DO NOT globalise any variables imported from `version-current.php` in this function.
    939939     *
    940      * BC Note: $wp_filesystem->wp_content_dir() returned unslashed pre-2.8
     940     * BC Note: $wp_filesystem->wp_content_dir() returned unslashed pre-2.8.
    941941     */
    942942    $versions_file = trailingslashit( $wp_filesystem->wp_content_dir() ) . 'upgrade/version-current.php';
     
    13741374            }
    13751375
    1376             // `wp_opcache_invalidate()` only exists in WordPress 5.5, so don't run it when upgrading to 5.5.
     1376            /*
     1377             * `wp_opcache_invalidate()` only exists in WordPress 5.5 or later,
     1378             * so don't run it when upgrading from older versions.
     1379             */
    13771380            if ( function_exists( 'wp_opcache_invalidate' ) ) {
    13781381                wp_opcache_invalidate( $to . $filename );
Note: See TracChangeset for help on using the changeset viewer.