Ticket #32416: 32416.partial.2.patch
File 32416.partial.2.patch, 3.8 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/class-wp-links-list-table.php
100 100 } 101 101 102 102 protected function get_sortable_columns() { 103 104 // the initial sorting is by name and ascending 105 // in the initial view the order on first click on 'Name' should be 'desc' 106 $desc_first = isset( $_GET['orderby'] ) ? false : true; 107 103 108 return array( 104 'name' => 'name',109 'name' => array( 'name', $desc_first ), 105 110 'url' => 'url', 106 111 'visible' => 'visible', 107 112 'rating' => 'rating' -
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-ms-users-list-table.php
138 138 } 139 139 140 140 protected function get_sortable_columns() { 141 142 // the initial sorting is by username ('login') and ascending 143 // in the initial view the order on first click on 'Username' should be 'desc' 144 $desc_first = isset( $_GET['orderby'] ) ? false : true; 145 141 146 return array( 142 'username' => 'login',147 'username' => array( 'login', $desc_first ), 143 148 'name' => 'name', 144 149 'email' => 'email', 145 150 'registered' => 'id', -
src/wp-admin/includes/class-wp-terms-list-table.php
150 150 } 151 151 152 152 protected function get_sortable_columns() { 153 154 // for non hierarchical taxonomies (tags) the initial sorting is by name and ascending 155 // in the initial view the order on first click on 'Name' should be 'desc' 156 if ( ! is_taxonomy_hierarchical( $taxonomy ) && ! isset( $args['orderby'] ) ) { 157 $desc_first = isset( $_GET['orderby'] ) ? false : true; 158 } 159 153 160 return array( 154 'name' => 'name',161 'name' => array( 'login', $desc_first ), 155 162 'description' => 'description', 156 163 'slug' => 'slug', 157 164 'posts' => 'count', -
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 );