Skip to content

Commit

Permalink
Switch the order of the VIP config check
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Jun 20, 2024
1 parent 9ba193b commit 3ae3c8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mantle/testing/wordpress-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
Utils::info( 'No wp-tests-config.php file found, using default configuration.' );
}

Utils::setup_configuration();

// Attempt to load the vip-config.php file if it exists to play nicely with VIP Go.
if ( Utils::env_bool( 'MANTLE_LOAD_VIP_CONFIG', true ) ) {
if ( file_exists( ABSPATH . '/wp-content/vip-config/vip-config.php' ) ) {
Expand All @@ -95,7 +97,6 @@
}
}

Utils::setup_configuration();
Utils::reset_server();

define( 'WP_TESTS_TABLE_PREFIX', $table_prefix );
Expand Down

0 comments on commit 3ae3c8e

Please sign in to comment.