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
This commit is contained in:
Andrew Nacin 2012-03-02 22:32:29 +00:00
parent 9f47e027ca
commit c56b5f3f59

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;