Changeset 56176 for trunk/src/wp-admin/includes/update-core.php
- Timestamp:
- 07/09/2023 08:05:43 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update-core.php
r56088 r56176 1230 1230 apply_filters( 'update_feedback', __( 'Preparing to install the latest version…' ) ); 1231 1231 1232 // Don't copy wp-content, we'll deal with that below. 1233 // We also copy version.php last so failed updates report their old version. 1232 /* 1233 * Don't copy wp-content, we'll deal with that below. 1234 * We also copy version.php last so failed updates report their old version. 1235 */ 1234 1236 $skip = array( 'wp-content', 'wp-includes/version.php' ); 1235 1237 $check_is_writable = array(); … … 1398 1400 } 1399 1401 1400 // If we don't have enough free space, it isn't worth trying again. 1401 // Unlikely to be hit due to the check in unzip_file(). 1402 /* 1403 * If we don't have enough free space, it isn't worth trying again. 1404 * Unlikely to be hit due to the check in unzip_file(). 1405 */ 1402 1406 $available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( ABSPATH ) : false; 1403 1407 … … 1417 1421 } 1418 1422 1419 // Custom content directory needs updating now. 1420 // Copy languages. 1423 /* 1424 * Custom content directory needs updating now. 1425 * Copy languages. 1426 */ 1421 1427 if ( ! is_wp_error( $result ) && $wp_filesystem->is_dir( $from . $distro . 'wp-content/languages' ) ) { 1422 1428 if ( WP_LANG_DIR !== ABSPATH . WPINC . '/languages' || @is_dir( WP_LANG_DIR ) ) { … … 1456 1462 $wp_filesystem->delete( $maintenance_file ); 1457 1463 1458 // 3.5 -> 3.5+ - an empty twentytwelve directory was created upon upgrade to 3.5 for some users, 1459 // preventing installation of Twenty Twelve. 1464 /* 1465 * 3.5 -> 3.5+ - an empty twentytwelve directory was created upon upgrade to 3.5 for some users, 1466 * preventing installation of Twenty Twelve. 1467 */ 1460 1468 if ( '3.5' === $old_wp_version ) { 1461 1469 if ( is_dir( WP_CONTENT_DIR . '/themes/twentytwelve' )
Note: See TracChangeset
for help on using the changeset viewer.