Skip to:
Content

BuddyPress.org

Changeset 3232 for trunk/bp-forums.php


Ignore:
Timestamp:
09/06/2010 04:24:57 PM (14 years ago)
Author:
apeatling
Message:

Merging 1.2 branch with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums.php

    r2925 r3232  
    441441        $post_position = $post->post_position;
    442442
    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 )
     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 )
    446446        do_action( 'bp_forums_new_post', $post_id );
    447447
    448     return $post_id;
     448    return $post;
    449449}
    450450
Note: See TracChangeset for help on using the changeset viewer.