Changeset 50475
- Timestamp:
- 03/02/2021 05:11:35 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update-core.php
r50460 r50475 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 ); … … 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
Note: See TracChangeset
for help on using the changeset viewer.