mirror of
git://develop.git.wordpress.org/
synced 2025-02-28 10:33:05 +01:00
git-svn-id: https://develop.svn.wordpress.org/trunk@17357 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e0f37101f7
commit
daecb5d36d
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user