WordPress.org

Make WordPress Core

Changeset 35682


Ignore:
Timestamp:
11/18/2015 08:18:08 PM (4 years ago)
Author:
wonderboymusic
Message:

List Tables: After [34728], don't try to infer orderby from query params.

List tables are really good.

Props cklosows.
Fixes #25493.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r35622 r35682  
    127127    public function ajax_user_can() {
    128128        return current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_posts );
    129     }
    130 
    131     /**
    132      * Get the value of the 'orderby' query var.
    133      *
    134      * @access protected
    135      * @since 4.4.0
    136      *
    137      * @return string The value of 'orderby'.
    138      */
    139     protected function get_orderby() {
    140         return strtolower( get_query_var( 'orderby' ) );
    141     }
    142 
    143     /**
    144      * Get the value of the 'order' query var.
    145      *
    146      * @access protected
    147      * @since 4.4.0
    148      *
    149      * @return string The value of 'order'.
    150      */
    151     protected function get_order() {
    152         return strtolower( get_query_var( 'order' ) );
    153129    }
    154130
Note: See TracChangeset for help on using the changeset viewer.