From 75f06658093992a4562184139e13916fdb15e922 Mon Sep 17 00:00:00 2001 From: Jordan Pakrosnis Date: Fri, 31 Mar 2023 15:20:58 -0400 Subject: [PATCH] Load load_pmc_required_plugins later on (from HV PR #24) --- src/classes/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/bootstrap.php b/src/classes/bootstrap.php index 97f9963..464e90e 100644 --- a/src/classes/bootstrap.php +++ b/src/classes/bootstrap.php @@ -128,7 +128,7 @@ public function __construct() { // Using unit test bootstrap function to add filter, the wp core has not loaded yet at this point. tests_add_filter( 'muplugins_loaded', [ $this, 'muplugins_loaded_late_bind' ], self::LOW_PRIORITY ); tests_add_filter( 'muplugins_loaded', [ $this, 'muplugins_loaded_early_bind' ], self::HIGH_PRIORITY ); - tests_add_filter( 'setup_theme', [ $this, 'load_pmc_required_plugins' ], self::HIGH_PRIORITY ); + tests_add_filter( 'muplugins_loaded', [ $this, 'load_pmc_required_plugins' ], self::HIGH_PRIORITY ); tests_add_filter( 'after_setup_theme', [ $this, 'after_setup_theme_early_bind' ], self::HIGH_PRIORITY ); tests_add_filter( 'after_setup_theme', [ $this, 'after_setup_theme_late_bind' ], self::LOW_PRIORITY ); tests_add_filter( 'pmc_do_not_load_plugin', [ $this, 'pmc_do_not_load_plugin' ], self::DEFAULT_PRIORITY, 4 );