diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index ef485974cb..649797306e 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -865,7 +865,7 @@ function is_term($term, $taxonomy = '', $parent = 0) { return $wpdb->get_var( $wpdb->prepare( $select . $where, $term ) ); } - $term = trim( $term ); + $term = trim( stripslashes( $term ) ); if ( '' === $slug = sanitize_title($term) ) return 0;