- Timestamp:
- 01/18/2018 06:06:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/classes/class-bbp-topic-replies-list-table.php
r6769 r6770 200 200 $orderby = ! empty( $_REQUEST['orderby'] ) ? sanitize_key( $_REQUEST['orderby'] ) : 'date'; 201 201 $order = ! empty( $_REQUEST['order'] ) ? sanitize_key( $_REQUEST['order'] ) : 'asc'; 202 $statuses = bbp_get_public_reply_statuses(); 203 204 // Maybe add private statuses to query 205 if ( current_user_can( 'edit_others_replies' ) ) { 206 207 // Default view=all statuses 208 $statuses = array_keys( bbp_get_topic_statuses() ); 209 210 // Add support for private status 211 if ( current_user_can( 'read_private_replies' ) ) { 212 $statuses[] = bbp_get_private_status_id(); 213 } 214 } 202 215 203 216 // Query for replies 204 217 $reply_query = new WP_Query( array( 205 218 'post_type' => bbp_get_reply_post_type(), 219 'post_status' => $statuses, 206 220 'post_parent' => $topic_id, 207 221 'posts_per_page' => $per_page, … … 210 224 'order' => ucwords( $order ), 211 225 'hierarchical' => false, 212 'ignore_sticky_posts' => true ,226 'ignore_sticky_posts' => true 213 227 ) ); 214 228 … … 249 263 $this->display_tablenav( 'top' ); ?> 250 264 251 <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">265 <table id="bbp-reply-list" class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>"> 252 266 <thead> 253 267 <tr>
Note: See TracChangeset
for help on using the changeset viewer.