diff --git a/src/includes/forums/functions.php b/src/includes/forums/functions.php
index 56ec78c..f32cfa0 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..71da3ef 100644
|
a
|
b
|
function bbp_new_reply_handler( $action = '' ) { |
| 361 | 361 | 'menu_order' => bbp_get_topic_reply_count( $topic_id, true ) + 1 |
| 362 | 362 | ) ); |
| 363 | 363 | |
| 364 | | // Insert reply |
| 365 | | $reply_id = wp_insert_post( $reply_data ); |
| | 364 | // Insert reply. Return WP Error object on failure. |
| | 365 | $reply_id = wp_insert_post( $reply_data, true ); |
| 366 | 366 | |
| 367 | 367 | /** No Errors *************************************************************/ |
| 368 | 368 | |
diff --git a/src/includes/topics/functions.php b/src/includes/topics/functions.php
index 21bfd18..f422488 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 | |