Changeset 26028 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 11/06/2013 11:40:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r26010 r26028 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 if ( in_array( $field, $int_fields ) ) 1714 $value = absint( $value ); 1713 if ( in_array( $field, $int_fields ) ) { 1714 $value = (int) $value; 1715 if ( $value < 0 ) 1716 $value = 0; 1717 } 1715 1718 1716 1719 if ( 'raw' == $context )
Note: See TracChangeset
for help on using the changeset viewer.