Changeset 14447
- Timestamp:
- 05/04/2010 06:41:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r14441 r14447 2568 2568 $post_type = get_post_type( $post_ID ); 2569 2569 // If $post_categories isn't already an array, make it one: 2570 if ( !is_array($post_categories) || 0 == count($post_categories) ||empty($post_categories) ) {2570 if ( !is_array($post_categories) || empty($post_categories) ) { 2571 2571 if ( 'post' == $post_type ) 2572 2572 $post_categories = array( get_option('default_category') ); 2573 2573 else 2574 2574 $post_categories = array(); 2575 } else if ( 1 == count($post_categories) && '' == $post_categories[0]) {2575 } else if ( 1 == count($post_categories) && '' == reset($post_categories) ) { 2576 2576 return true; 2577 2577 }
Note: See TracChangeset
for help on using the changeset viewer.