Changeset 9128
- Timestamp:
- 10/12/2008 06:09:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update-core.php
r9086 r9128 178 178 // Sanity check the unzipped distribution 179 179 apply_filters('update_feedback', __('Verifying the unpacked files')); 180 if ( ! file_exists($from . '/wordpress/wp-settings.php') || !file_exists($from . '/wordpress/wp-admin/admin.php') ||181 ! file_exists($from . '/wordpress/wp-includes/functions.php') ) {180 if ( !$wp_filesystem->exists($from . '/wordpress/wp-settings.php') || !$wp_filesystem->exists($from . '/wordpress/wp-admin/admin.php') || 181 !$wp_filesystem->exists($from . '/wordpress/wp-includes/functions.php') ) { 182 182 $wp_filesystem->delete($from, true); 183 183 return new WP_Error('insane_distro', __('The update could not be unpacked') ); … … 203 203 foreach ( $_old_files as $old_file ) { 204 204 $old_file = $to . $old_file; 205 if ( ! file_exists($old_file) )205 if ( !$wp_filesystem->exists($old_file) ) 206 206 continue; 207 207 $wp_filesystem->delete($old_file, true);
Note: See TracChangeset
for help on using the changeset viewer.