Ticket #32416: 32416.partial.patch
File 32416.partial.patch, 1.5 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/class-wp-media-list-table.php
259 259 } 260 260 261 261 protected function get_sortable_columns() { 262 263 // the initial sorting is by date and descending 264 // in the initial view the order on first click on 'Date' should be 'asc' 265 $desc_first = isset( $_GET['orderby'] ) ? true : false; 266 262 267 return array( 263 268 'title' => 'title', 264 269 'author' => 'author', 265 270 'parent' => 'parent', 266 271 'comments' => 'comment_count', 267 'date' => array( 'date', true),272 'date' => array( 'date', $desc_first ), 268 273 ); 269 274 } 270 275 -
src/wp-admin/includes/class-wp-users-list-table.php
281 281 * @return array Array of sortable columns. 282 282 */ 283 283 protected function get_sortable_columns() { 284 285 // the initial sorting is by username ('login') and ascending 286 // in the initial view the order on first click on 'Username' should be 'desc' 287 $desc_first = isset( $_GET['orderby'] ) ? false : true; 288 284 289 $c = array( 285 'username' => 'login',290 'username' => array( 'login', $desc_first ), 286 291 'name' => 'name', 287 292 'email' => 'email', 288 293 );