mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user