mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Don't unslash variables that came from wp_reset_vars(). see #21767.
git-svn-id: https://develop.svn.wordpress.org/trunk@23580 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -27,10 +27,9 @@ $plugins = get_plugins();
|
||||
if ( empty($plugins) )
|
||||
wp_die( __('There are no plugins installed on this site.') );
|
||||
|
||||
if ( isset($_REQUEST['file']) )
|
||||
$plugin = wp_unslash($_REQUEST['file']);
|
||||
|
||||
if ( empty($plugin) ) {
|
||||
if ( $file ) {
|
||||
$plugin = $file;
|
||||
} elseif ( empty( $plugin ) ) {
|
||||
$plugin = array_keys($plugins);
|
||||
$plugin = $plugin[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user