Changeset 6271
- Timestamp:
- 02/02/2017 07:21:51 PM (8 years ago)
- Location:
- trunk/src/includes/admin
- Files:
-
- 1 deleted
- 1 edited
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/classes/class-bbp-topic-replies-list-table.php
r6270 r6271 22 22 * 23 23 * This list table is responsible for showing the replies to a topic in a 24 * meta box, similar to comments in posts and pages.24 * meta-box, similar to comments in posts and pages. 25 25 * 26 26 * @since 2.6.0 bbPress (r5886) … … 43 43 44 44 /** 45 * Setup the list-table 'scolumns45 * Setup the list-table columns 46 46 * 47 47 * @since 2.6.0 bbPress (r5886) … … 56 56 'bbp_topic_reply_author' => esc_html__( 'Author', 'bbpress' ), 57 57 'bbp_reply_content' => esc_html__( 'Content', 'bbpress' ), 58 'bbp_reply_created' => esc_html__( 'Replied', 58 'bbp_reply_created' => esc_html__( 'Replied', 'bbpress' ), 59 59 ); 60 60 } … … 92 92 93 93 /** 94 * Output the `cb`column for bulk actions (if we implement them)94 * Output the check-box column for bulk actions (if we implement them) 95 95 * 96 96 * @since 2.6.0 bbPress (r5886) … … 202 202 $per_page = 5; 203 203 $current_page = $this->get_pagenum(); 204 $orderby = ( ! empty( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby']: 'date';205 $order = ( ! empty( $_REQUEST['order'] ) ) ? $_REQUEST['order']: 'asc';204 $orderby = ( ! empty( $_REQUEST['orderby'] ) ) ? sanitize_key( $_REQUEST['orderby'] ) : 'date'; 205 $order = ( ! empty( $_REQUEST['order'] ) ) ? sanitize_key( $_REQUEST['order'] ) : 'asc'; 206 206 207 207 // Query for replies -
trunk/src/includes/admin/metaboxes.php
r6227 r6271 565 565 // Pull in the list table class 566 566 if ( ! class_exists( 'BBP_Topic_Replies_List_Table' ) ) { 567 require_once bbpress()->admin->admin_dir . '/ list-tables/topic-replies.php';567 require_once bbpress()->admin->admin_dir . '/classes/class-bbp-topic-replies-list-table.php'; 568 568 } 569 569
Note: See TracChangeset
for help on using the changeset viewer.