Ticket #27196: 27196.diff
File 27196.diff, 1.1 KB (added by , 11 years ago) |
---|
-
src/wp-admin/includes/class-wp-upgrader.php
52 52 $this->strings['installing_package'] = __('Installing the latest version…'); 53 53 $this->strings['no_files'] = __('The package contains no files.'); 54 54 $this->strings['folder_exists'] = __('Destination folder already exists.'); 55 $this->strings['remove_first'] = __( 'Unable to install over existing folder - delete installed version first.' ); 55 56 $this->strings['mkdir_failed'] = __('Could not create directory.'); 56 57 $this->strings['incompatible_archive'] = __('The package could not be installed.'); 57 58 … … 364 365 $this->skin->set_result($result); 365 366 if ( is_wp_error($result) ) { 366 367 $this->skin->error($result); 368 if ( in_array( 'folder_exists', $result->get_error_codes() ) ){ 369 $this->skin->feedback( 'remove_first' ); 370 } 367 371 $this->skin->feedback('process_failed'); 368 372 } else { 369 373 //Install Succeeded