From dd0d70f411fe48a3d7244fb064c507af375bbdb0 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 17 Oct 2008 18:56:56 +0000 Subject: [PATCH] Don't double escape in get_cat_ID(). fixes #7849 git-svn-id: http://svn.automattic.com/wordpress/trunk@9229 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 2fb1fcc27..c1b5619fe 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -375,6 +375,7 @@ function get_term_by($field, $value, $taxonomy, $output = OBJECT, $filter = 'raw return false; } else if ( 'name' == $field ) { // Assume already escaped + $value = stripslashes($value); $field = 't.name'; } else { $field = 't.term_id';