Ticket #13246: 14433.diff
| File 14433.diff, 479 bytes (added by jorbin, 3 years ago) |
|---|
-
wp-includes/post.php
2096 2096 $post_category = array(); 2097 2097 } 2098 2098 2099 // Make sure the category is set in [0] if there is only one 2100 if ( 1 == count($post_category) && empty( $post_category[0] ) ) 2101 $post_category[0] = array_shift($post_category); 2102 2099 2103 if ( empty($post_author) ) 2100 2104 $post_author = $user_ID; 2101 2105
