From 71fbf68deea1d68180b95db4d5f02af0dcce42f4 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 1 May 2009 22:05:04 +0000 Subject: [PATCH] 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 --- wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;