Skip to content

Commit

Permalink
Load external plugins on plugins loaded hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
amostajo committed Jan 11, 2023
1 parent d3ea994 commit 5f17e74
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions templates/testbootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ function _manually_load_external_plugins() {
//
// ----------------------------
}
tests_add_filter( 'plugins_loaded', '_manually_load_external_plugins' );

// Start up the WP testing environment.
require $_tests_dir . '/includes/bootstrap.php';

_manually_load_external_plugins();
require $_tests_dir . '/includes/bootstrap.php';

0 comments on commit 5f17e74

Please sign in to comment.