diff --git a/wp-admin/network/upgrade.php b/wp-admin/network/upgrade.php index 199838cf57..ee8fd57545 100644 --- a/wp-admin/network/upgrade.php +++ b/wp-admin/network/upgrade.php @@ -55,7 +55,7 @@ switch ( $action ) { update_site_option( 'wpmu_upgrade_site', $wp_db_version ); } - $blogs = $wpdb->get_results( "SELECT blog_id FROM {$wpdb->blogs} WHERE site_id = '{$wpdb->siteid}' AND spam = '0' AND deleted = '0' AND archived = '0' ORDER BY registered DESC LIMIT {$n}, 5", ARRAY_A ); + $blogs = $wpdb->get_results( "SELECT blog_id FROM {$wpdb->blogs} WHERE site_id = '{$wpdb->siteid}' AND spam = '0' AND deleted = '0' AND archived = '0' ORDER BY blog_id DESC LIMIT {$n}, 5", ARRAY_A ); if ( empty( $blogs ) ) { echo '
' . __( 'All done!' ) . '
'; break; diff --git a/wp-includes/version.php b/wp-includes/version.php index b189b57f7d..cd8150e547 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38227'; +$wp_version = '4.7-alpha-38229'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.