Skip to:
Content

BuddyPress.org

Changeset 2306


Ignore:
Timestamp:
01/15/2010 12:26:12 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1425 - missing bp_forums_new_topic and bp_forums_new_post actions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums.php

    r2288 r2306  
    220220        return false;
    221221
     222    do_action( 'bp_forums_new_topic', $topic_id );
     223
    222224    return $topic_id;
    223225}
     
    404406        $post_position = $post->post_position;
    405407
    406     return bb_insert_post( array( 'post_id' => $post_id, 'topic_id' => $topic_id, 'post_text' => stripslashes( $post_text ), 'post_time' => $post_time, 'poster_id' => $poster_id, 'poster_ip' => $poster_ip, 'post_status' => $post_status, 'post_position' => $post_position ) );
     408    $post = bb_insert_post( array( 'post_id' => $post_id, 'topic_id' => $topic_id, 'post_text' => stripslashes( $post_text ), 'post_time' => $post_time, 'poster_id' => $poster_id, 'poster_ip' => $poster_ip, 'post_status' => $post_status, 'post_position' => $post_position ) );
     409
     410    if ( $post )
     411        do_action( 'bp_forums_new_post', $post_id );
     412
     413    return $post;
    407414}
    408415
Note: See TracChangeset for help on using the changeset viewer.