diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index 48f26ce516..cc4d9cb61a 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -321,7 +321,7 @@ function validate_active_plugins() { function validate_plugin($plugin) { if ( validate_file($plugin) ) - return new WP_Error('plugin_invalid', __('Invalid plugin.')); + return new WP_Error('plugin_invalid', __('Invalid plugin path.')); if ( ! file_exists(WP_PLUGIN_DIR . '/' . $plugin) ) return new WP_Error('plugin_not_found', __('Plugin file does not exist.')); diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index a24e88aed8..e8133271e1 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -168,7 +168,7 @@ require_once('admin-header.php'); $invalid = validate_active_plugins(); if( !empty($invalid) ) foreach($invalid as $plugin_file => $error) - echo '

' . sprintf(__('The plugin %s has been deactivated due to "%s".'), $plugin_file, $error->get_error_message()) . '

'; + echo '

' . sprintf(__('The plugin %s has been deactivated due to an error: %s'), $plugin_file, $error->get_error_message()) . '

'; ?>