Skip to:
Content

bbPress.org

Changeset 5397


Ignore:
Timestamp:
06/13/2014 05:48:01 PM (11 years ago)
Author:
johnjamesjacoby
Message:

If a reply is a reply to another reply, display the parent reply information in the form legend with the topic title. Props netweb. Fixes #2509.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/form-reply.php

    r5396 r5397  
    2727
    2828            <fieldset class="bbp-form">
    29                 <legend><?php printf( __( 'Reply To: %s', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
     29                <legend><?php printf( esc_html__( 'Reply To: %s', 'bbpress' ), ( bbp_get_form_reply_to() ) ? sprintf( esc_html__( 'Reply #%1$s in %2$s', 'bbpress' ), bbp_get_form_reply_to(), bbp_get_topic_title() ) : bbp_get_topic_title() ); ?></legend>
    3030
    3131                <?php do_action( 'bbp_theme_before_reply_form_notices' ); ?>
     
    6767
    6868                    <?php endif; ?>
    69                    
     69
    7070                    <?php if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags' ) ) : ?>
    7171
Note: See TracChangeset for help on using the changeset viewer.