- Timestamp:
- 07/06/2025 04:40:53 PM (8 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/class-wp-upgrader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r60216 r60417 1023 1023 1024 1024 $file = $wp_filesystem->abspath() . '.maintenance'; 1025 1025 1026 if ( $enable ) { 1026 1027 if ( ! wp_doing_cron() ) { 1027 1028 $this->skin->feedback( 'maintenance_start' ); 1028 1029 } 1030 1029 1031 // Create maintenance file to signal that we are upgrading. 1030 1032 $maintenance_string = '<?php $upgrading = ' . time() . '; ?>'; 1031 1033 $wp_filesystem->delete( $file ); 1032 1034 $wp_filesystem->put_contents( $file, $maintenance_string, FS_CHMOD_FILE ); 1033 } elseif ( ! $enable &&$wp_filesystem->exists( $file ) ) {1035 } elseif ( $wp_filesystem->exists( $file ) ) { 1034 1036 if ( ! wp_doing_cron() ) { 1035 1037 $this->skin->feedback( 'maintenance_end' ); 1036 1038 } 1039 1037 1040 $wp_filesystem->delete( $file ); 1038 1041 }
Note: See TracChangeset
for help on using the changeset viewer.