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:
ryan 2007-11-03 19:06:43 +00:00
parent a2e0f3352f
commit ad563a953f
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 ) || 'term_group' == $field )
$value = (int) $value; $value = (int) $value;
if ( 'raw' == $context )
return $value;
if ( 'edit' == $context ) { if ( 'edit' == $context ) {
$value = apply_filters("edit_term_$field", $value, $term_id, $taxonomy); $value = apply_filters("edit_term_$field", $value, $term_id, $taxonomy);
$value = apply_filters("edit_${taxonomy}_$field", $value, $term_id); $value = apply_filters("edit_${taxonomy}_$field", $value, $term_id);