strip slashes from term before prepare(). Props jhodgdon. see #6593

git-svn-id: https://develop.svn.wordpress.org/trunk@11153 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-05-01 22:05:04 +00:00
parent 1583662c19
commit 71fbf68dee
1 changed files with 1 additions and 1 deletions

View File

@ -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;