Make get_term_by() use sanitize_title_for_query() too. See #9591

git-svn-id: http://svn.automattic.com/wordpress/trunk@16832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-12-09 10:05:19 +00:00
parent 1474c1a64a
commit 8ba8d20f16
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {