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:
parent
1583662c19
commit
71fbf68dee
|
@ -865,7 +865,7 @@ function is_term($term, $taxonomy = '', $parent = 0) {
|
||||||
return $wpdb->get_var( $wpdb->prepare( $select . $where, $term ) );
|
return $wpdb->get_var( $wpdb->prepare( $select . $where, $term ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
$term = trim( $term );
|
$term = trim( stripslashes( $term ) );
|
||||||
|
|
||||||
if ( '' === $slug = sanitize_title($term) )
|
if ( '' === $slug = sanitize_title($term) )
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue