WordPress.org

Make WordPress Core

Ticket #42362: 42362.diff

File 42362.diff, 665 bytes (added by pento, 2 years ago)
  • src/wp-admin/setup-config.php

    diff --git a/src/wp-admin/setup-config.php b/src/wp-admin/setup-config.php
    index 2382357d84..2f102cfcff 100644
    a b switch ( $step ) { 
    306306                        wp_die( $wpdb->error->get_error_message() . $tryagain_link );
    307307                }
    308308
    309                 $errors = $wpdb->hide_errors();
     309                $errors = $wpdb->suppress_errors();
    310310                $wpdb->query( "SELECT $prefix" );
    311                 $wpdb->show_errors( $errors );
     311                $wpdb->suppress_errors( $errors );
    312312                if ( ! $wpdb->last_error ) {
    313313                        // MySQL was able to parse the prefix as a value, which we don't want. Bail.
    314314                        wp_die( __( '<strong>ERROR</strong>: "Table Prefix" is invalid.' ) );