From 005b2e5be1355000dea729f7c5dc969d6a2e79a7 Mon Sep 17 00:00:00 2001 From: scribu Date: Thu, 9 Dec 2010 10:05:19 +0000 Subject: [PATCH] Make get_term_by() use sanitize_title_for_query() too. See #9591 git-svn-id: https://develop.svn.wordpress.org/trunk@16832 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 6ded1b385f..f8a558eee8 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -781,7 +781,7 @@ function get_term_by($field, $value, $taxonomy, $output = OBJECT, $filter = 'raw if ( 'slug' == $field ) { $field = 't.slug'; - $value = sanitize_title($value); + $value = sanitize_title_for_query($value); if ( empty($value) ) return false; } else if ( 'name' == $field ) {