From 177d1efb9f5a3ba28e0f816b4b1c566375e8d791 Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 2 Mar 2012 22:32:29 +0000 Subject: [PATCH] Use sanitize_key(). sanitize_title_with_dashes() is more than we need. see #19815. see [20096], [20097]. git-svn-id: http://svn.automattic.com/wordpress/trunk@20098 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-theme-install-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php index 41fbb64506..82841528ef 100644 --- a/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/wp-admin/includes/class-wp-theme-install-list-table.php @@ -62,7 +62,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : ''; switch ( $type ) { case 'tag': - $args['tag'] = array_map( 'sanitize_title_with_dashes', $search_terms ); + $args['tag'] = array_map( 'sanitize_key', $search_terms ); break; case 'term': $args['search'] = $search_string;