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:
scribu
2010-10-23 12:55:55 +00:00
parent ccf9dfdf9a
commit ed9a39abab
3 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -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);