From 4603a50cae89c2ba7ae48ff4bd711dfe5e3e570e Mon Sep 17 00:00:00 2001 From: markjaquith Date: Mon, 24 Jan 2011 06:26:38 +0000 Subject: [PATCH] Revert [16832]. see #9591. fixes #16282 git-svn-id: http://svn.automattic.com/wordpress/trunk@17357 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 3c1a3c770..8515f8184 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -879,7 +879,7 @@ function get_term_by($field, $value, $taxonomy, $output = OBJECT, $filter = 'raw if ( 'slug' == $field ) { $field = 't.slug'; - $value = sanitize_title_for_query($value); + $value = sanitize_title($value); if ( empty($value) ) return false; } else if ( 'name' == $field ) {