Ticket #25852: 25852.diff
| File 25852.diff, 575 bytes (added by , 12 years ago) |
|---|
-
src/wp-includes/taxonomy.php
1711 1711 function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) { 1712 1712 $int_fields = array( 'parent', 'term_id', 'count', 'term_group', 'term_taxonomy_id', 'object_id' ); 1713 1713 if ( in_array( $field, $int_fields ) ) 1714 $value = absint( $value );1714 $value = ( $value >= 0 ) ? absint( $value ) : 0; 1715 1715 1716 1716 if ( 'raw' == $context ) 1717 1717 return $value;