Skip to:
Content

bbPress.org

Changeset 6316


Ignore:
Timestamp:
02/26/2017 07:00:55 AM (3 years ago)
Author:
johnjamesjacoby
Message:

Replies: Check for reply hierarchy before assuming topic-title in reply-to.

Fixes a bug causing malformed output when creating a reply via wp-admin.

Props tharsheblows . Fixes #2617. See #2844.

File:
1 edited

Legend:

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

    r6302 r6316  
    26932693        }
    26942694
     2695        // Default "None" text
     2696        $show_none = ( 0 !== $reply_id )
     2697            ? esc_attr_x( 'None', 'Default reply to dropdown text', 'bbpress' )
     2698            : sprintf( esc_attr__( '%1$s - %2$s', 'bbpress' ), $topic_id, bbp_get_topic_title( $topic_id ) );
     2699
    26952700        // Get the dropdown and return it
    26962701        $retval = bbp_get_dropdown( array(
    2697             'show_none'    => sprintf( esc_attr__( '%1$s - %2$s', 'bbpress' ), $topic_id, bbp_get_topic_title( $topic_id ) ),
     2702            'show_none'    => $show_none,
    26982703            'select_id'    => 'bbp_reply_to',
    26992704            'select_class' => 'bbp_dropdown',
Note: See TracChangeset for help on using the changeset viewer.