WordPress.org

Make WordPress Core

Ticket #30097: 30097.patch

File 30097.patch, 740 bytes (added by marcosf, 6 years ago)
  • upgrade.php

     
    5252                        update_site_option( 'wpmu_upgrade_site', $wp_db_version );
    5353                }
    5454
    55                 $blogs = $wpdb->get_results( "SELECT * 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 );
     55        $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 );
    5656                if ( empty( $blogs ) ) {
    5757                        echo '<p>' . __( 'All done!' ) . '</p>';
    5858                        break;