Changeset 5739 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 06/20/2007 10:06:29 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r5728 r5739 382 382 383 383 if ( is_int($term) ) { 384 if ( 0 == $term ) 385 return 0; 384 386 $where = "t.term_id = '$term'"; 385 387 } else { … … 601 603 return new WP_Error('invalid_taxonomy', __('Invalid taxonomy')); 602 604 605 if ( is_int($term) && 0 == $term ) 606 return new WP_Error('invalid_term_id', __('Invalid term ID')); 607 603 608 $defaults = array( 'alias_of' => '', 'description' => '', 'parent' => 0, 'slug' => ''); 604 609 $args = wp_parse_args($args, $defaults);
Note: See TracChangeset
for help on using the changeset viewer.