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
This commit is contained in:
nacin 2012-03-02 22:32:29 +00:00
parent 21663b39ea
commit 177d1efb9f
1 changed files with 1 additions and 1 deletions

View File

@ -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;