diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 54c282c0fe..bd250ae2c2 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -1553,9 +1553,9 @@ function dbDelta( $queries = '', $execute = true ) { continue; // Fetch the table column structure from the database - $wpdb->suppress_errors(); + $suppress = $wpdb->suppress_errors(); $tablefields = $wpdb->get_results("DESCRIBE {$table};"); - $wpdb->suppress_errors( false ); + $wpdb->suppress_errors( $suppress ); if ( ! $tablefields ) continue; diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 1e15684b4c..5a1d20df7d 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -1129,10 +1129,10 @@ function install_blog( $blog_id, $blog_title = '' ) { require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); - $wpdb->suppress_errors(); + $suppress = $wpdb->suppress_errors(); if ( $wpdb->get_results( "DESCRIBE {$wpdb->posts}" ) ) die( '
' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '