Changeset 17180
- Timestamp:
- 12/30/2010 06:06:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-sites-list-table.php
r17129 r17180 42 42 if ( !$s && ( get_blog_count() >= 10000 ) ) { 43 43 if ( !isset($_REQUEST['orderby']) ) 44 $_GET['orderby'] = $_REQUEST['orderby'] = ' id';44 $_GET['orderby'] = $_REQUEST['orderby'] = ''; 45 45 if ( !isset($_REQUEST['order']) ) 46 46 $_GET['order'] = $_REQUEST['order'] = 'DESC'; … … 79 79 } 80 80 81 $order_by = isset( $_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : ' id';81 $order_by = isset( $_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : ''; 82 82 if ( $order_by == 'registered' ) { 83 83 $query .= ' ORDER BY registered '; … … 85 85 $query .= ' ORDER BY last_updated '; 86 86 } elseif ( $order_by == 'blogname' ) { 87 $query .= ' ORDER BY domain '; 87 if ( is_subdomain_install() ) 88 $query .= ' ORDER BY domain '; 89 else 90 $query .= ' ORDER BY path '; 91 } elseif ( $order_by == 'blog_id' ) { 92 $query .= ' ORDER BY blog_id '; 88 93 } else { 89 94 $order_by = null; … … 156 161 'blogname' => 'blogname', 157 162 'lastupdated' => 'lastupdated', 158 'registered' => ' id',163 'registered' => 'blog_id', 159 164 ); 160 165 }
Note: See TracChangeset
for help on using the changeset viewer.