Make WordPress Core

Ticket #42362: 42362.2.diff

File 42362.2.diff, 676 bytes (added by SergeyBiryukov, 23 months ago)
  • src/wp-admin/setup-config.php

     
    311311                        wp_die( $wpdb->error->get_error_message() . $tryagain_link );
    312312                }
    313313
    314                 $errors = $wpdb->hide_errors();
     314                $errors = $wpdb->suppress_errors();
    315315                $wpdb->query( "SELECT $prefix" );
    316                 $wpdb->show_errors( $errors );
     316                $wpdb->suppress_errors( $errors );
     317
    317318                if ( ! $wpdb->last_error ) {
    318319                        // MySQL was able to parse the prefix as a value, which we don't want. Bail.
    319320                        wp_die( __( '<strong>Error:</strong> "Table Prefix" is invalid.' ) );