Fix raw context filtering for terms. see #5253

git-svn-id: https://develop.svn.wordpress.org/trunk@6311 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-11-03 19:06:43 +00:00
parent ed6c69983f
commit 686182b75d
1 changed files with 3 additions and 0 deletions

View File

@ -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);