From 1b8afaa995a125973772c7fcbd8f0eb6fbbd0618 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 1 Mar 2013 17:57:49 +0000 Subject: [PATCH] Remove an unslash in the deprecated WP_User_Search, as search_term is already unslashed in the constructor. see #21767. git-svn-id: https://develop.svn.wordpress.org/trunk@23577 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/deprecated.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php index 55f5d2a8fc..399577ed4b 100644 --- a/wp-admin/includes/deprecated.php +++ b/wp-admin/includes/deprecated.php @@ -479,7 +479,6 @@ class WP_User_Search { $this->prepare_query(); $this->query(); - $this->prepare_vars_for_template_usage(); $this->do_paging(); } @@ -550,9 +549,7 @@ class WP_User_Search { * @since 2.1.0 * @access public */ - function prepare_vars_for_template_usage() { - $this->search_term = wp_unslash($this->search_term); // done with DB, from now on we want slashes gone - } + function prepare_vars_for_template_usage() {} /** * {@internal Missing Short Description}}