Make WordPress Core


Ignore:
Timestamp:
05/22/2007 08:39:26 PM (19 years ago)
Author:
ryan
Message:

Fix primary key on term_relationships. Add wp_set_object_terms(). Setting post tags working now. see #4189

File:
1 edited

Legend:

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

    r5510 r5515  
    795795        $tags = array();
    796796    $tags = (is_array($tags)) ? $tags : explode( ',', $tags );
    797     add_term_relationship($tags, $post_id, 'post_tag');
     797    wp_set_object_terms($post_id, $tags, 'post_tag', $append);
    798798}
    799799
Note: See TracChangeset for help on using the changeset viewer.