From 605a57ead1d41cf33e0d9df135830666c11a0128 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 17 Oct 2008 18:56:56 +0000 Subject: [PATCH] Don't double escape in get_cat_ID(). fixes #7849 git-svn-id: https://develop.svn.wordpress.org/trunk@9229 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 2fb1fcc272..c1b5619fec 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';