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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-05-01 22:05:04 +00:00
parent ef0b1dc621
commit 7fc314e858
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;