Make WordPress Core


Ignore:
Timestamp:
06/20/2007 10:06:29 PM (19 years ago)
Author:
ryan
Message:

Don't create '0' categories. fixes #4413

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r5726 r5739  
    797797    if (!is_array($post_categories) || 0 == count($post_categories) || empty($post_categories))
    798798        $post_categories = array(get_option('default_category'));
     799    else if ( 1 == count($post_categories) && '' == $post_categories[0] )
     800        return true;
    799801
    800802    $post_categories = array_map('intval', $post_categories);
Note: See TracChangeset for help on using the changeset viewer.