Ticket #28013: 28013.diff
File 28013.diff, 916 bytes (added by , 10 years ago) |
---|
-
wp-admin/includes/class-wp-upgrader.php
431 431 $this->skin->feedback('maintenance_start'); 432 432 // Create maintenance file to signal that we are upgrading 433 433 $maintenance_string = '<?php $upgrading = ' . time() . '; ?>'; 434 $wp_filesystem->delete($file); 434 if( is_file( ABSPATH . '.maintenance' ) ) { 435 $wp_filesystem->delete($file, false, 'f'); 436 } 435 437 $wp_filesystem->put_contents($file, $maintenance_string, FS_CHMOD_FILE); 436 } else if ( !$enable && $wp_filesystem->exists($file) ) {438 } else if ( !$enable && is_file( ABSPATH . '.maintenance' ) ) { 437 439 $this->skin->feedback('maintenance_end'); 438 $wp_filesystem->delete($file );440 $wp_filesystem->delete($file, false, 'f'); 439 441 } 440 442 } 441 443