Changeset 5691 for trunk/src/includes/replies/template.php
- Timestamp:
- 04/20/2015 04:20:34 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/replies/template.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/template.php
r5676 r5691 1684 1684 1685 1685 // Get the reply to use it's ID and post_parent 1686 $reply = bbp_get_reply( bbp_get_reply_id( $r['id'] ));1686 $reply = bbp_get_reply( $r['id'] ); 1687 1687 1688 1688 // Bail if no reply or user cannot reply … … 1972 1972 ), 'get_reply_edit_link' ); 1973 1973 1974 $reply = bbp_get_reply( bbp_get_reply_id( $r['id'] ));1974 $reply = bbp_get_reply( $r['id'] ); 1975 1975 1976 1976 // Bypass check if user has caps … … 2024 2024 global $wp_rewrite; 2025 2025 2026 $reply = bbp_get_reply( bbp_get_reply_id( $reply_id ));2026 $reply = bbp_get_reply( $reply_id ); 2027 2027 if ( empty( $reply ) ) { 2028 2028 return; … … 2099 2099 ), 'get_reply_trash_link' ); 2100 2100 2101 $reply = bbp_get_reply( bbp_get_reply_id( $r['id'] ));2101 $reply = bbp_get_reply( $r['id'] ); 2102 2102 2103 2103 if ( empty( $reply ) || ! current_user_can( 'delete_reply', $reply->ID ) ) { … … 2170 2170 ), 'get_reply_spam_link' ); 2171 2171 2172 $reply = bbp_get_reply( bbp_get_reply_id( $r['id'] ));2172 $reply = bbp_get_reply( $r['id'] ); 2173 2173 2174 2174 if ( empty( $reply ) || ! current_user_can( 'moderate', $reply->ID ) ) { … … 2367 2367 ), 'get_reply_approve_link' ); 2368 2368 2369 $reply = bbp_get_reply( bbp_get_reply_id( $r['id'] ));2369 $reply = bbp_get_reply( $r['id'] ); 2370 2370 2371 2371 if ( empty( $reply ) || ! current_user_can( 'moderate', $reply->ID ) ) { … … 2674 2674 'show_none' => sprintf( esc_attr__( '%1$s - %2$s', 'bbpress' ), $topic_id, bbp_get_topic_title( $topic_id ) ), 2675 2675 'select_id' => 'bbp_reply_to', 2676 'select_class' => 'bbp_dropdown', 2676 2677 'exclude' => $reply_id, 2677 2678 'selected' => $reply_to, … … 2791 2792 // Parse arguments against default values 2792 2793 $r = bbp_parse_args( $args, array( 2793 'select_id' => 'bbp_reply_status', 2794 'tab' => false, 2795 'reply_id' => 0, 2796 'selected' => false 2794 'select_id' => 'bbp_reply_status', 2795 'select_class' => 'bbp_dropdown', 2796 'tab' => false, 2797 'reply_id' => 0, 2798 'selected' => false 2797 2799 ), 'reply_status_dropdown' ); 2798 2800 … … 2825 2827 ob_start(); ?> 2826 2828 2827 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select" <?php echo $tab; ?>>2829 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select" class="<?php echo esc_attr( $r['select_class'] ); ?>"<?php echo $tab; ?>> 2828 2830 2829 2831 <?php foreach ( bbp_get_reply_statuses( $r['reply_id'] ) as $key => $label ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.