Ticket #25493: 25493.2.diff
File 25493.2.diff, 793 bytes (added by , 9 years ago) |
---|
-
wp-admin/includes/class-wp-posts-list-table.php
137 137 * @return string The value of 'orderby'. 138 138 */ 139 139 protected function get_orderby() { 140 return strtolower( get_query_var( 'orderby' ) ); 140 if ( isset( $_GET['orderby'] ) ) { 141 return $_GET['orderby']; 142 } 143 144 return ''; 141 145 } 142 146 143 147 /** … … 149 153 * @return string The value of 'order'. 150 154 */ 151 155 protected function get_order() { 152 return strtolower( get_query_var( 'order' ) ); 156 if ( isset( $_GET['order'] ) && 'desc' === $_GET['order'] ) { 157 return 'desc'; 158 } 159 160 return 'asc'; 153 161 } 154 162 155 163 /**