Skip to:
Content

bbPress.org

Changeset 6095


Ignore:
Timestamp:
09/13/2016 06:13:32 PM (3 years ago)
Author:
johnjamesjacoby
Message:

Only show reply-to drop-down when editing an existing reply.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/metaboxes.php

    r6056 r6095  
    534534    /** Reply To **************************************************************/
    535535
    536     ?>
    537 
    538     <p>
    539         <strong class="label"><?php esc_html_e( 'Reply To:', 'bbpress' ); ?></strong>
    540         <label class="screen-reader-text" for="bbp_reply_to"><?php esc_html_e( 'Reply To', 'bbpress' ); ?></label>
    541         <?php bbp_reply_to_dropdown( $post_id ); ?>
    542     </p>
     536    // Only show reply-to drop-down when editing an existing reply
     537    if ( ! empty( $reply_topic_id ) ) : ?>
     538
     539        <p>
     540            <strong class="label"><?php esc_html_e( 'Reply To:', 'bbpress' ); ?></strong>
     541            <label class="screen-reader-text" for="bbp_reply_to"><?php esc_html_e( 'Reply To', 'bbpress' ); ?></label>
     542            <?php bbp_reply_to_dropdown( $post_id ); ?>
     543        </p>
     544
     545    <?php
     546
     547    endif;
     548
     549    ?>
    543550
    544551    <input name="ping_status" type="hidden" id="ping_status" value="open" />
Note: See TracChangeset for help on using the changeset viewer.