Skip to content

Commit

Permalink
Merge pull request #724 from lucatume/v35-fix-issue-720
Browse files Browse the repository at this point in the history
v3.5 transpile of fix for #720
  • Loading branch information
lucatume authored May 18, 2024
2 parents 18c4e83 + bfbc52a commit f5b9d82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions includes/core-phpunit/includes/abstract-testcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ public static function set_up_before_class() {

$wpdb->suppress_errors = false;
$wpdb->show_errors = true;
$wpdb->db_connect();
ini_set( 'display_errors', 1 );
if ( ! $wpdb->check_connection() ) {
$wpdb->db_connect();
}
ini_set( 'display_errors', 1 );

$class = self::$calledClass ?? get_called_class();

Expand Down

0 comments on commit f5b9d82

Please sign in to comment.