Ticket #11564: quickedit-tags-fix.diff
| File quickedit-tags-fix.diff, 843 bytes (added by , 16 years ago) |
|---|
-
wp-includes/post.php
1621 1621 $post_category = array(get_option('default_category')); 1622 1622 } 1623 1623 1624 //Set the default tag list1625 if ( !isset($tags_input) )1626 $tags_input = array();1627 1628 1624 if ( empty($post_author) ) 1629 1625 $post_author = $user_ID; 1630 1626 … … 1767 1763 $wpdb->update( $wpdb->posts, array( 'post_name' => $data['post_name'] ), $where ); 1768 1764 } 1769 1765 1770 wp_set_post_categories( $post_ID, $post_category ); 1766 wp_set_post_categories( $post_ID, $post_category ); 1771 1767 // old-style tags_input 1772 if ( !empty($tags_input) )1768 if ( isset($tags_input) ) 1773 1769 wp_set_post_tags( $post_ID, $tags_input ); 1774 1770 // new-style support for all tag-like taxonomies 1775 1771 if ( !empty($tax_input) ) {