Changeset 48160 for trunk/src/wp-admin/includes/update-core.php
- Timestamp:
- 06/25/2020 07:13:22 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update-core.php
r48067 r48160 1319 1319 * Assumes that WP_Filesystem() has already been called and setup. 1320 1320 * 1321 * This is a temporary function for the 3.1 -> 3.2 upgrade, as well as for those 1322 * upgrading to 3.7+. 1321 * This is a standalone copy of the `copy_dir()` function that is used to 1322 * upgrade the core files. It is placed here so that the version of this 1323 * function from the *new* WordPress version will be called. 1324 * 1325 * It was initially added for the 3.1 -> 3.2 upgrade. 1323 1326 * 1324 1327 * @ignore … … 1327 1330 * 1328 1331 * @see copy_dir() 1332 * @link https://core.trac.wordpress.org/ticket/17173 1329 1333 * 1330 1334 * @global WP_Filesystem_Base $wp_filesystem … … 1355 1359 return new WP_Error( 'copy_failed__copy_dir', __( 'Could not copy file.' ), $to . $filename ); 1356 1360 } 1361 } 1362 1363 // `wp_opcache_invalidate()` only exists in WordPress 5.5, so don't run it when upgrading to 5.5. 1364 if ( function_exists( 'wp_opcache_invalidate' ) ) { 1365 wp_opcache_invalidate( $to . $filename ); 1357 1366 } 1358 1367 } elseif ( 'd' === $fileinfo['type'] ) {
Note: See TracChangeset
for help on using the changeset viewer.