Skip to content

Commit 9f7d489

Browse files
authored
Merge pull request #193 from newfold-labs/fix/PRESS7-426
fix/PRESS7-426-BH Plugin Activation Redirect Issue When Jetpack Boost Is Insta…
2 parents 709a0ac + 0a18f4d commit 9f7d489

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bootstrap.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ function ( $plugin ) {
2727
isset( $_REQUEST['action'] ) && // phpcs:ignore WordPress.Security.NonceVerification
2828
'activate' === $_REQUEST['action'] // phpcs:ignore WordPress.Security.NonceVerification
2929
) {
30+
add_action(
31+
'activate_jetpack-boost/jetpack-boost.php',
32+
function () {
33+
remove_action( 'activated_plugin', 'Automattic\\Jetpack_Boost\\jetpack_boost_plugin_activation' );
34+
}
35+
);
3036
PluginInstaller::install( 'jetpack-boost', true );
3137
}
3238
}

0 commit comments

Comments
 (0)