Skip to:
Content

BuddyPress.org

Changeset 4148


Ignore:
Timestamp:
03/23/2011 08:59:34 PM (11 years ago)
Author:
boonebgorges
Message:

Removes existing topic tags before adding new ones to account for a bbPress quirk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-functions.php

    r4147 r4148  
    193193    extract( $r, EXTR_SKIP );
    194194
     195    // bb_insert_topic() will append tags, but not remove them. So we remove all existing tags.
     196    bb_remove_topic_tags( $topic_id );
     197
    195198    if ( !$topic_id = bb_insert_topic( array( 'topic_id' => $topic_id, 'topic_title' => stripslashes( $topic_title ), 'tags' => $topic_tags ) ) )
    196199        return false;
Note: See TracChangeset for help on using the changeset viewer.