diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 2fb1fcc27..c1b5619fe 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -375,6 +375,7 @@ function get_term_by($field, $value, $taxonomy, $output = OBJECT, $filter = 'raw return false; } else if ( 'name' == $field ) { // Assume already escaped + $value = stripslashes($value); $field = 't.name'; } else { $field = 't.term_id';