Make WordPress Core


Ignore:
Timestamp:
09/16/2007 02:36:23 AM (19 years ago)
Author:
ryan
Message:

Don't lose tags when saving a post with attachments. Props filosofo. fixes #4532

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r6120 r6121  
    582582        $post = get_post($postid, $mode);
    583583
    584         // Set categories
     584        // Set categories and tags
    585585        if($mode == OBJECT) {
    586586                $post->post_category = wp_get_post_categories($postid);
     587                $post->tags_input = wp_get_post_tags($postid, array('fields' => 'names'));
    587588        }
    588589        else {
    589590                $post['post_category'] = wp_get_post_categories($postid);
     591                $post['tags_input'] = wp_get_post_tags($postid, array('fields' => 'names'));
    590592        }
    591593
Note: See TracChangeset for help on using the changeset viewer.