@@ -1229,8 +1229,10 @@ function update_core( $from, $to ) {
12291229 /** This filter is documented in wp-admin/includes/update-core.php */
12301230 apply_filters ( 'update_feedback ' , __ ( 'Preparing to install the latest version… ' ) );
12311231
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+ */
12341236 $ skip = array ( 'wp-content ' , 'wp-includes/version.php ' );
12351237 $ check_is_writable = array ();
12361238
@@ -1397,8 +1399,10 @@ function update_core( $from, $to ) {
13971399 }
13981400 }
13991401
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+ */
14021406 $ available_space = function_exists ( 'disk_free_space ' ) ? @disk_free_space ( ABSPATH ) : false ;
14031407
14041408 if ( $ available_space && $ total_size >= $ available_space ) {
@@ -1416,8 +1420,10 @@ function update_core( $from, $to ) {
14161420 }
14171421 }
14181422
1419- // Custom content directory needs updating now.
1420- // Copy languages.
1423+ /*
1424+ * Custom content directory needs updating now.
1425+ * Copy languages.
1426+ */
14211427 if ( ! is_wp_error ( $ result ) && $ wp_filesystem ->is_dir ( $ from . $ distro . 'wp-content/languages ' ) ) {
14221428 if ( WP_LANG_DIR !== ABSPATH . WPINC . '/languages ' || @is_dir ( WP_LANG_DIR ) ) {
14231429 $ lang_dir = WP_LANG_DIR ;
@@ -1455,8 +1461,10 @@ function update_core( $from, $to ) {
14551461 // Remove maintenance file, we're done with potential site-breaking changes.
14561462 $ wp_filesystem ->delete ( $ maintenance_file );
14571463
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+ */
14601468 if ( '3.5 ' === $ old_wp_version ) {
14611469 if ( is_dir ( WP_CONTENT_DIR . '/themes/twentytwelve ' )
14621470 && ! file_exists ( WP_CONTENT_DIR . '/themes/twentytwelve/style.css ' )
0 commit comments