Skip to:
Content

bbPress.org

Changeset 5371


Ignore:
Timestamp:
06/06/2014 01:20:09 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Indentation clean-up and assignment clarifycation in bbp_get_reply_to(). See #2588.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/template.php

    r5338 r5371  
    15771577
    15781578        // Check that reply_id is valid
    1579         if ( $reply_id = bbp_get_reply_id( $reply_id ) )
    1580 
    1581             // Get reply_to value
     1579        $reply_id = bbp_get_reply_id( $reply_id );
     1580
     1581        // Get reply_to value
     1582        if ( ! empty( $reply_id ) ) {
    15821583            $reply_to = (int) get_post_meta( $reply_id, '_bbp_reply_to', true );
     1584        }
    15831585
    15841586        return (int) apply_filters( 'bbp_get_reply_to', $reply_to, $reply_id );
Note: See TracChangeset for help on using the changeset viewer.