From 7fc314e8583ec4493e99038d39b68073f367bb12 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 1 May 2009 22:05:04 +0000 Subject: [PATCH] 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 --- 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 ef485974c..649797306 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;