WordPress.org

Make WordPress Core

Ticket #21922: 21922.patch

File 21922.patch, 694 bytes (added by bpetty, 6 years ago)
  • wp-includes/ms-functions.php

     
    11271127
    11281128        require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
    11291129
    1130         if ( $wpdb->get_results("SELECT ID FROM $wpdb->posts") )
     1130        $wpdb->suppress_errors();
     1131        if ( $wpdb->get_results( "DESCRIBE {$wpdb->posts}" ) )
    11311132                die( __( '<h1>Already Installed</h1><p>You appear to have already installed WordPress. To reinstall please clear your old database tables first.</p>' ) . '</body></html>' );
     1133        $wpdb->suppress_errors( false );
    11321134
    11331135        $url = get_blogaddress_by_id( $blog_id );
    11341136