Changeset 2893
- Timestamp:
- 04/05/2010 10:18:21 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-forums.php
r2794 r2893 447 447 $post_position = $post->post_position; 448 448 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 ) 452 452 do_action( 'bp_forums_new_post', $post_id ); 453 453 454 return $post ;454 return $post_id; 455 455 } 456 456
Note: See TracChangeset
for help on using the changeset viewer.