Ticket #13246: 14431.diff
| File 14431.diff, 539 bytes (added by jorbin, 3 years ago) |
|---|
-
wp-includes/post.php
2078 2078 if ( empty($post_category) || 0 == count($post_category) || !is_array($post_category) ) { 2079 2079 // 'post' requires at least one category. 2080 2080 if ( 'post' == $post_type ) 2081 $post_category = array( get_option('default_category') );2081 $post_category = array( 0 => get_option('default_category') ); 2082 2082 else 2083 2083 $post_category = array(); 2084 2084 }