diff --git a/src/includes/forums/functions.php b/src/includes/forums/functions.php
index 56ec78c..1f6e94e 100644
|
a
|
b
|
function bbp_new_forum_handler( $action = '' ) { |
| 261 | 261 | 'comment_status' => 'closed' |
| 262 | 262 | ) ); |
| 263 | 263 | |
| 264 | | // Insert forum |
| 265 | | $forum_id = wp_insert_post( $forum_data ); |
| | 264 | // Insert forum. Return WP_Error object on failure. |
| | 265 | $forum_id = wp_insert_post( $forum_data, true ); |
| 266 | 266 | |
| 267 | 267 | /** No Errors *************************************************************/ |
| 268 | 268 | |
diff --git a/src/includes/replies/functions.php b/src/includes/replies/functions.php
index 4cc223c..7317181 100644
|
a
|
b
|
function bbp_insert_reply( $reply_data = array(), $reply_meta = array() ) { |
| 41 | 41 | 'comment_status' => 'closed' |
| 42 | 42 | ), 'insert_reply' ); |
| 43 | 43 | |
| 44 | | // Insert reply |
| 45 | | $reply_id = wp_insert_post( $reply_data ); |
| | 44 | // Insert reply. Return WP_Error object on failure. |
| | 45 | $reply_id = wp_insert_post( $reply_data, true ); |
| 46 | 46 | |
| 47 | 47 | // Bail if no reply was added |
| 48 | 48 | if ( empty( $reply_id ) ) { |
diff --git a/src/includes/topics/functions.php b/src/includes/topics/functions.php
index 21bfd18..856053e 100644
|
a
|
b
|
function bbp_new_topic_handler( $action = '' ) { |
| 336 | 336 | 'comment_status' => 'closed' |
| 337 | 337 | ) ); |
| 338 | 338 | |
| 339 | | // Insert topic |
| 340 | | $topic_id = wp_insert_post( $topic_data ); |
| | 339 | // Insert topic. Return WP_Error object on failure. |
| | 340 | $topic_id = wp_insert_post( $topic_data, true ); |
| 341 | 341 | |
| 342 | 342 | /** No Errors *************************************************************/ |
| 343 | 343 | |