Permalink
Browse files

Plugins: Add file check to plugin deletions.

Built from https://develop.svn.wordpress.org/trunk@40169


git-svn-id: http://core.svn.wordpress.org/trunk@40108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
aaroncampbell committed Mar 6, 2017
1 parent 419c8d9 commit 4d80f8b3e1b00a3edcee0774dc9c2f4c78f9e663
Showing with 9 additions and 1 deletion.
  1. +8 −0 wp-admin/plugins.php
  2. +1 −1 wp-includes/version.php
@@ -246,6 +246,14 @@
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');
$parent_file = 'plugins.php';
@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-40160';
$wp_version = '4.8-alpha-40169';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 comments on commit 4d80f8b

Please sign in to comment.