Skip to:
Content

bbPress.org

Ticket #2230: 2230.diff

File 2230.diff, 521 bytes (added by imath, 13 years ago)
  • includes/topics/functions.php

     
    291291
    292292        // Insert topic
    293293        $topic_id = wp_insert_post( $topic_data );
     294       
     295        /* add post meta _bbp_forum_id otherwise sticky is not set when topic is first created */
     296        bbp_update_topic_forum_id( $topic_id, $forum_id );
    294297
    295298        /** No Errors *************************************************************/
    296299