Ticket #38918: 38918.3.diff
File 38918.3.diff, 904 bytes (added by , 7 years ago) |
---|
-
src/wp-admin/includes/plugin.php
891 891 set_site_transient( 'update_plugins', $current ); 892 892 } 893 893 894 if ( ! empty($errors) ) 895 return new WP_Error('could_not_remove_plugin', sprintf(__('Could not fully remove the plugin(s) %s.'), implode(', ', $errors)) ); 894 if ( ! empty( $errors ) ) { 895 if ( 1 === count( $errors ) ) { 896 /* translators: %s: plugin filename */ 897 $message = __( 'Could not fully remove the plugin %s.' ); 898 } else { 899 /* translators: %s: comma-separated list of plugin filenames */ 900 $message = __( 'Could not fully remove the plugins %s.' ); 901 } 896 902 903 return new WP_Error( 'could_not_remove_plugin', sprintf( $message, implode( ', ', $errors ) ) ); 904 } 905 897 906 return true; 898 907 } 899 908