Changeset 5421
- Timestamp:
- 07/01/2014 01:14:49 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/replies/template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/template.php
r5400 r5421 2639 2639 } 2640 2640 /** 2641 * Returns topicstatus downdown2641 * Returns reply status downdown 2642 2642 * 2643 2643 * This dropdown is only intended to be seen by users with the 'moderate' … … 2650 2650 * - select_id: Select id. Defaults to bbp_reply_status 2651 2651 * - tab: Tabindex 2652 * - topic_id: Reply id2652 * - reply_id: Reply id 2653 2653 * - selected: Override the selected option 2654 2654 */ … … 2673 2673 } else { 2674 2674 2675 // Edit topic2675 // Edit reply 2676 2676 if ( bbp_is_reply_edit() ) { 2677 2677 $r['reply_id'] = bbp_get_reply_id( $r['reply_id'] ); 2678 2678 $r['selected'] = bbp_get_reply_status( $r['reply_id'] ); 2679 2679 2680 // New topic2680 // New reply 2681 2681 } else { 2682 2682 $r['selected'] = bbp_get_public_status_id(); … … 2693 2693 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select"<?php echo $tab; ?>> 2694 2694 2695 <?php foreach ( bbp_get_reply_statuses( $r[' topic_id'] ) as $key => $label ) : ?>2695 <?php foreach ( bbp_get_reply_statuses( $r['reply_id'] ) as $key => $label ) : ?> 2696 2696 2697 2697 <option value="<?php echo esc_attr( $key ); ?>"<?php selected( $key, $r['selected'] ); ?>><?php echo esc_html( $label ); ?></option>
Note:
See TracChangeset
for help on using the changeset viewer.