From 686182b75d4c8e1f820956cb7927750b05bc38d4 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 3 Nov 2007 19:06:43 +0000 Subject: [PATCH] Fix raw context filtering for terms. see #5253 git-svn-id: https://develop.svn.wordpress.org/trunk@6311 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 8323cf0b64..5121794277 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -773,6 +773,9 @@ function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) { || 'term_group' == $field ) $value = (int) $value; + if ( 'raw' == $context ) + return $value; + if ( 'edit' == $context ) { $value = apply_filters("edit_term_$field", $value, $term_id, $taxonomy); $value = apply_filters("edit_${taxonomy}_$field", $value, $term_id);