diff --git a/plugin/includes/replies/functions.php b/plugin/includes/replies/functions.php
index 1565e74..728f0e8 100644
|
a
|
b
|
function bbp_new_reply_handler( $action = '' ) { |
| 111 | 111 | |
| 112 | 112 | // Nonce check |
| 113 | 113 | if ( ! bbp_verify_nonce_request( 'bbp-new-reply' ) ) { |
| 114 | | bbp_add_error( 'bbp_rew_reply_nonce', __( '<strong>ERROR</strong>: Are you sure you wanted to do that?', 'bbpress' ) ); |
| | 114 | bbp_add_error( 'bbp_new_reply_nonce', __( '<strong>ERROR</strong>: Are you sure you wanted to do that?', 'bbpress' ) ); |
| 115 | 115 | return; |
| 116 | 116 | } |
| 117 | 117 | |
| … |
… |
function bbp_move_reply_handler( $action = '' ) { |
| 1229 | 1229 | 'post_date' => $destination_post_date, |
| 1230 | 1230 | 'post_date_gmt' => get_gmt_from_date( $destination_post_date ) |
| 1231 | 1231 | ); |
| 1232 | | |
| | 1232 | |
| 1233 | 1233 | // Update destination topic |
| 1234 | 1234 | wp_update_post( $postarr ); |
| 1235 | 1235 | } |
| 1236 | | |
| | 1236 | |
| 1237 | 1237 | // Set the last reply ID and freshness to the move_reply |
| 1238 | 1238 | $last_reply_id = $move_reply->ID; |
| 1239 | 1239 | $freshness = $move_reply->post_date; |
| 1240 | | |
| | 1240 | |
| 1241 | 1241 | // It is a new topic and we need to set some default metas to make |
| 1242 | 1242 | // the topic display in bbp_has_topics() list |
| 1243 | 1243 | if ( 'topic' == $move_option ) { |
| … |
… |
function bbp_move_reply_handler( $action = '' ) { |
| 1256 | 1256 | bbp_update_topic_last_reply_id ( $source_topic->ID ); |
| 1257 | 1257 | bbp_update_topic_last_active_id ( $source_topic->ID ); |
| 1258 | 1258 | bbp_update_topic_last_active_time( $source_topic->ID ); |
| 1259 | | |
| | 1259 | |
| 1260 | 1260 | /** Successful Move ******************************************************/ |
| 1261 | 1261 | |
| 1262 | 1262 | // Update counts, etc... |