mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-03 11:59:23 +00:00
Plugins: Add file check to plugin deletions.
Merges [40169] to 4.7 branch. Built from https://develop.svn.wordpress.org/branches/4.7@40170 git-svn-id: http://core.svn.wordpress.org/branches/4.7@40109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
25e3338dbc
commit
177b19d9ec
@ -246,6 +246,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';
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7.3-RC1-40161';
|
$wp_version = '4.7.3-RC1-40170';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user