Changeset 6032 for trunk/src/includes/admin/topics.php
- Timestamp:
- 05/25/2016 01:23:29 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/topics.php
r5951 r6032 1004 1004 } 1005 1005 1006 // Add Empty Spam button1006 // Add "Empty Spam" button for moderators 1007 1007 if ( ! empty( $_GET['post_status'] ) && ( bbp_get_spam_status_id() === $_GET['post_status'] ) && current_user_can( 'moderate' ) ) { 1008 1008 wp_nonce_field( 'bulk-destroy', '_destroy_nonce' ); 1009 $title = esc_attr__( 'Empty Spam', 'bbpress' ); 1010 submit_button( $title, 'button-secondary apply', 'delete_all', false ); 1009 submit_button( 1010 esc_attr__( 'Empty Spam', 'bbpress' ), 1011 'button-secondary apply', 1012 'delete_all', 1013 false 1014 ); 1011 1015 } 1012 1016 1013 1017 // Get which forum is selected 1014 $selected = ! empty( $_GET['bbp_forum_id'] ) ? $_GET['bbp_forum_id'] : ''; 1018 $selected = ! empty( $_GET['bbp_forum_id'] ) 1019 ? (int) $_GET['bbp_forum_id'] 1020 : 0; 1015 1021 1016 1022 // Show the forums dropdown
Note: See TracChangeset
for help on using the changeset viewer.