diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php
a
|
b
|
|
816 | 816 | $this->skin->feedback('maintenance_start'); |
817 | 817 | // Create maintenance file to signal that we are upgrading |
818 | 818 | $maintenance_string = '<?php $upgrading = ' . time() . '; ?>'; |
819 | | $wp_filesystem->delete($file); |
| 819 | $wp_filesystem->delete($file, false, 'f'); |
820 | 820 | $wp_filesystem->put_contents($file, $maintenance_string, FS_CHMOD_FILE); |
821 | | } elseif ( ! $enable && $wp_filesystem->exists( $file ) ) { |
| 821 | } else { |
822 | 822 | $this->skin->feedback('maintenance_end'); |
823 | | $wp_filesystem->delete($file); |
| 823 | $wp_filesystem->delete($file, false, 'f'); |
824 | 824 | } |
825 | 825 | } |
826 | 826 | |