Skip to:
Content

BuddyPress.org

Changeset 2893


Ignore:
Timestamp:
04/05/2010 10:18:21 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2267 props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-forums.php

    r2794 r2893  
    447447        $post_position = $post->post_position;
    448448
    449     $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 ) );
    450 
    451     if ( $post )
     449    $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 ) );
     450
     451    if ( $post_id )
    452452        do_action( 'bp_forums_new_post', $post_id );
    453453
    454     return $post;
     454    return $post_id;
    455455}
    456456
Note: See TracChangeset for help on using the changeset viewer.