Changeset 50477 for branches/5.7/src/wp-admin/includes/update-core.php
- Timestamp:
- 03/02/2021 06:19:42 PM (4 years ago)
- Location:
- branches/5.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.7
- Property svn:mergeinfo changed
/trunk merged: 50460,50475
- Property svn:mergeinfo changed
-
branches/5.7/src/wp-admin/includes/update-core.php
r50149 r50477 938 938 * DO NOT globalise any variables imported from `version-current.php` in this function. 939 939 * 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. 941 941 */ 942 942 $versions_file = trailingslashit( $wp_filesystem->wp_content_dir() ) . 'upgrade/version-current.php'; … … 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 … … 1374 1391 } 1375 1392 1376 // `wp_opcache_invalidate()` only exists in WordPress 5.5, so don't run it when upgrading to 5.5. 1393 /* 1394 * `wp_opcache_invalidate()` only exists in WordPress 5.5 or later, 1395 * so don't run it when upgrading from older versions. 1396 */ 1377 1397 if ( function_exists( 'wp_opcache_invalidate' ) ) { 1378 1398 wp_opcache_invalidate( $to . $filename );
Note: See TracChangeset
for help on using the changeset viewer.