Make WordPress Core

Ticket #11564: quickedit-tags-fix.diff

File quickedit-tags-fix.diff, 843 bytes (added by aaron_guitar, 16 years ago)

Corrected the tabs/spaces issue

  • wp-includes/post.php

     
    16211621                $post_category = array(get_option('default_category'));
    16221622        }
    16231623
    1624         //Set the default tag list
    1625         if ( !isset($tags_input) )
    1626                 $tags_input = array();
    1627 
    16281624        if ( empty($post_author) )
    16291625                $post_author = $user_ID;
    16301626
     
    17671763                $wpdb->update( $wpdb->posts, array( 'post_name' => $data['post_name'] ), $where );
    17681764        }
    17691765
    1770         wp_set_post_categories( $post_ID, $post_category );
     1766        wp_set_post_categories( $post_ID, $post_category );
    17711767        // old-style tags_input
    1772         if ( !empty($tags_input) )
     1768        if ( isset($tags_input) )
    17731769                wp_set_post_tags( $post_ID, $tags_input );
    17741770        // new-style support for all tag-like taxonomies
    17751771        if ( !empty($tax_input) ) {