Skip to:
Content

BuddyPress.org

Changeset 2925 for trunk/bp-forums.php


Ignore:
Timestamp:
04/15/2010 11:59:40 AM (14 years ago)
Author:
apeatling
Message:

Merging 1.2 branch with trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums.php

    r2919 r2925  
    441441        $post_position = $post->post_position;
    442442
    443     $post = bb_insert_post( array( 'post_id' => $post_id, 'topic_id' => $topic_id, 'post_text' => stripslashes( trim( $post_text ) ), 'post_time' => $post_time, 'poster_id' => $poster_id, 'poster_ip' => $poster_ip, 'post_status' => $post_status, 'post_position' => $post_position ) );
    444 
    445     if ( $post )
     443    $post_id = bb_insert_post( array( 'post_id' => $post_id, 'topic_id' => $topic_id, 'post_text' => stripslashes( trim( $post_text ) ), 'post_time' => $post_time, 'poster_id' => $poster_id, 'poster_ip' => $poster_ip, 'post_status' => $post_status, 'post_position' => $post_position ) );
     444
     445    if ( $post_id )
    446446        do_action( 'bp_forums_new_post', $post_id );
    447447
    448     return $post;
     448    return $post_id;
    449449}
    450450
Note: See TracChangeset for help on using the changeset viewer.