Skip to:
Content

bbPress.org

Ticket #2624: 2624.1.diff

File 2624.1.diff, 1023 bytes (added by netweb, 11 years ago)
  • src/includes/topics/functions.php

     
    16501660                        // Update the reply
    16511661                        wp_update_post( array(
    16521662                                'ID'          => $reply->ID,
    1653                                 'post_title'  => sprintf( __( 'Reply To: %s', 'bbpress' ), $destination_topic->post_title ),
    1654                                 'post_name'   => false, // will be automatically generated
     1663                                'post_title'  => '',
     1664                                'post_name'   => $reply->ID,
    16551665                                'post_parent' => $destination_topic->ID,
    16561666                                'menu_order'  => $reply_position,
    16571667                                'guid'        => ''
     
    16641674                        bbp_update_reply_topic_id( $reply->ID, $destination_topic->ID                           );
    16651675                        bbp_update_reply_forum_id( $reply->ID, bbp_get_topic_forum_id( $destination_topic->ID ) );
    16661676
     1677                        // Adjust reply position
     1678                        bbp_update_reply_position( $reply->ID );
     1679
    16671680                        // Adjust reply to values
    16681681                        $reply_to = bbp_get_reply_to( $reply->ID );
    16691682