Don't double escape in get_cat_ID(). fixes #7849
git-svn-id: http://svn.automattic.com/wordpress/trunk@9229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
72282f995e
commit
dd0d70f411
|
@ -375,6 +375,7 @@ function get_term_by($field, $value, $taxonomy, $output = OBJECT, $filter = 'raw
|
||||||
return false;
|
return false;
|
||||||
} else if ( 'name' == $field ) {
|
} else if ( 'name' == $field ) {
|
||||||
// Assume already escaped
|
// Assume already escaped
|
||||||
|
$value = stripslashes($value);
|
||||||
$field = 't.name';
|
$field = 't.name';
|
||||||
} else {
|
} else {
|
||||||
$field = 't.term_id';
|
$field = 't.term_id';
|
||||||
|
|
Loading…
Reference in New Issue