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:
parent
ef0b1dc621
commit
7fc314e858
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue