diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 3c1a3c770c..8515f8184c 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -879,7 +879,7 @@ function get_term_by($field, $value, $taxonomy, $output = OBJECT, $filter = 'raw if ( 'slug' == $field ) { $field = 't.slug'; - $value = sanitize_title_for_query($value); + $value = sanitize_title($value); if ( empty($value) ) return false; } else if ( 'name' == $field ) {