Skip to:
Content

bbPress.org

Changeset 6271


Ignore:
Timestamp:
02/02/2017 07:21:51 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Admin: Rename list-table file for future autoloading of classes.

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  
    2222 *
    2323 * This list table is responsible for showing the replies to a topic in a
    24  * metabox, similar to comments in posts and pages.
     24 * meta-box, similar to comments in posts and pages.
    2525 *
    2626 * @since 2.6.0 bbPress (r5886)
     
    4343
    4444    /**
    45      * Setup the list-table's columns
     45     * Setup the list-table columns
    4646     *
    4747     * @since 2.6.0 bbPress (r5886)
     
    5656            'bbp_topic_reply_author' => esc_html__( 'Author',  'bbpress' ),
    5757            'bbp_reply_content'      => esc_html__( 'Content', 'bbpress' ),
    58             'bbp_reply_created'      => esc_html__( 'Replied',  'bbpress' ),
     58            'bbp_reply_created'      => esc_html__( 'Replied', 'bbpress' ),
    5959        );
    6060    }
     
    9292
    9393    /**
    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)
    9595     *
    9696     * @since 2.6.0 bbPress (r5886)
     
    202202        $per_page     = 5;
    203203        $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';
    206206
    207207        // Query for replies
  • trunk/src/includes/admin/metaboxes.php

    r6227 r6271  
    565565    // Pull in the list table class
    566566    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';
    568568    }
    569569
Note: See TracChangeset for help on using the changeset viewer.