summaryrefslogtreecommitdiffstats
path: root/wp-admin/media.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--wp-admin/media.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-admin/media.php b/wp-admin/media.php
index 5b7ac35..ab8952f 100644
--- a/wp-admin/media.php
+++ b/wp-admin/media.php
@@ -15,7 +15,7 @@ require_once __DIR__ . '/admin.php';
$parent_file = 'upload.php';
$submenu_file = 'upload.php';
-wp_reset_vars( array( 'action' ) );
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
switch ( $action ) {
case 'editattachment':