Changeset 5739
- Timestamp:
- 06/20/2007 10:06:29 PM (17 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r5726 r5739 797 797 if (!is_array($post_categories) || 0 == count($post_categories) || empty($post_categories)) 798 798 $post_categories = array(get_option('default_category')); 799 else if ( 1 == count($post_categories) && '' == $post_categories[0] ) 800 return true; 799 801 800 802 $post_categories = array_map('intval', $post_categories); -
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.