Changeset 7481 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 03/23/2008 12:55:11 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r7431 r7481 797 797 */ 798 798 function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) { 799 if ( 'parent' == $field || 'term_id' == $field || 'count' == $field || 'term_group' == $field ) 799 if ( 'parent' == $field || 'term_id' == $field || 'count' == $field || 'term_group' == $field ) { 800 800 $value = (int) $value; 801 if ( $value < 0 ) 802 $value = 0; 803 } 801 804 802 805 if ( 'raw' == $context )
Note: See TracChangeset
for help on using the changeset viewer.