Fix raw context filtering for terms. see #5253
git-svn-id: http://svn.automattic.com/wordpress/trunk@6311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a2e0f3352f
commit
ad563a953f
|
@ -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