Ticket #38918: 38918-forced-test.diff
File 38918-forced-test.diff, 1.1 KB (added by , 9 years ago) |
---|
-
wp-admin/includes/plugin.php
869 869 continue; 870 870 } 871 871 872 $fake_errors = array(); 873 874 if( $deleted ) { 875 $fake_errors[] = $plugin_file; 876 } 877 872 878 // Remove language files, silently. 873 879 $plugin_slug = dirname( $plugin_file ); 874 880 if ( '.' !== $plugin_slug && ! empty( $plugin_translations[ $plugin_slug ] ) ) { … … 893 899 set_site_transient( 'update_plugins', $current ); 894 900 } 895 901 896 if ( ! empty( $errors) )897 return new WP_Error('could_not_remove_plugin', sprintf( __('Could not fully remove the plugin(s) %s.'), implode(', ', $errors)) );902 if ( ! empty( $errors ) ) 903 return new WP_Error('could_not_remove_plugin', sprintf( __( 'Could not fully remove the plugin: %s.' ), implode( ', ', $errors ) ) ); 898 904 905 if( ! empty( $fake_errors ) ) 906 return new WP_Error('could_not_remove_plugin', sprintf( __( 'Could not fully remove the plugin: %s.' ), implode( ', ', $fake_errors ) ) ); 907 899 908 return true; 900 909 } 901 910