mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Introduce sanitize_title_for_query(). See #9591
git-svn-id: https://develop.svn.wordpress.org/trunk@15929 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -534,7 +534,7 @@ function get_objects_in_term( $terms, $taxonomies, $args = array() ) {
|
||||
case 'slug':
|
||||
case 'name':
|
||||
foreach ( $terms as $i => $term ) {
|
||||
$terms[$i] = sanitize_term_field('slug', $term, 0, $taxonomy, 'db');
|
||||
$terms[$i] = sanitize_title_for_query( $term );
|
||||
}
|
||||
$terms = array_filter($terms);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user