mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-25 15:54:26 +00:00
Fix error message when invalidating plugin because of bad path.
git-svn-id: https://develop.svn.wordpress.org/trunk@8496 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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.'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user