Skip to:
Content

bbPress.org

Ticket #2257: 2257.diff

File 2257.diff, 1.7 KB (added by netweb, 12 years ago)
  • plugin/includes/replies/functions.php

    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 = '' ) { 
    111111
    112112        // Nonce check
    113113        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' ) );
    115115                return;
    116116        }
    117117
    function bbp_move_reply_handler( $action = '' ) { 
    12291229                        'post_date'     => $destination_post_date,
    12301230                        'post_date_gmt' => get_gmt_from_date( $destination_post_date )
    12311231                );
    1232        
     1232
    12331233                // Update destination topic
    12341234                wp_update_post( $postarr );
    12351235        }
    1236        
     1236
    12371237        // Set the last reply ID and freshness to the move_reply
    12381238        $last_reply_id = $move_reply->ID;
    12391239        $freshness     = $move_reply->post_date;
    1240        
     1240
    12411241        // It is a new topic and we need to set some default metas to make
    12421242        // the topic display in bbp_has_topics() list
    12431243        if ( 'topic' == $move_option ) {
    function bbp_move_reply_handler( $action = '' ) { 
    12561256        bbp_update_topic_last_reply_id   ( $source_topic->ID );
    12571257        bbp_update_topic_last_active_id  ( $source_topic->ID );
    12581258        bbp_update_topic_last_active_time( $source_topic->ID );
    1259        
     1259
    12601260        /** Successful Move ******************************************************/
    12611261
    12621262        // Update counts, etc...