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:
parent
ed6c69983f
commit
686182b75d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user