From c56b5f3f59664030f97c0dc6d1ef77db46132b06 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@20098 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;