Skip to:
Content

bbPress.org

Ticket #2588: 2588.diff

File 2588.diff, 679 bytes (added by netweb, 8 years ago)
  • src/includes/replies/functions.php

     
    11191119                return;
    11201120
    11211121        // Set the reply to
    1122         if ( !empty( $reply_to ) ) {
     1122        if ( ! empty( $reply_to ) ) {
    11231123                update_post_meta( $reply_id, '_bbp_reply_to', $reply_to );
    11241124
    11251125        // Delete the reply to
     
    11271127                delete_post_meta( $reply_id, '_bbp_reply_to' );
    11281128        }
    11291129
    1130         return (int) apply_filters( 'bbp_update_reply_to', (int) $reply_to, $reply_id );
     1130        return (int) apply_filters( 'bbp_update_reply_to', (int) $reply_id, $reply_to );
    11311131}
    11321132
    11331133/**