mirror of
git://develop.git.wordpress.org/
synced 2025-03-11 07:29:45 +01:00
Plugins: Add file check to plugin deletions.
Merges [40169] to 4.3 branch. git-svn-id: https://develop.svn.wordpress.org/branches/4.3@40174 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a8957bb665
commit
55663f87f7
@ -231,6 +231,14 @@ if ( $action ) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Bail on all if any paths are invalid.
|
||||||
|
// validate_file() returns truthy for invalid files
|
||||||
|
$invalid_plugin_files = array_filter( $plugins, 'validate_file' );
|
||||||
|
if ( $invalid_plugin_files ) {
|
||||||
|
wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s") );
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
include(ABSPATH . 'wp-admin/update.php');
|
include(ABSPATH . 'wp-admin/update.php');
|
||||||
|
|
||||||
$parent_file = 'plugins.php';
|
$parent_file = 'plugins.php';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user