diff --git a/civicrm.php b/civicrm.php index 20a12bc256473d9555d0d0633d5301333d3ac406..34b8947086efc9d599733cc549ff1cfb105cfdb4 100644 --- a/civicrm.php +++ b/civicrm.php @@ -291,6 +291,7 @@ class CiviCRM_For_WordPress { // Set a one-time-only option add_option( 'civicrm_activation_in_progress', 'true' ); + add_option('civicrm_setup_do_activation_redirect', true); } @@ -321,6 +322,11 @@ class CiviCRM_For_WordPress { // Change option so this action never fires again update_option( 'civicrm_activation_in_progress', 'false' ); + if (!isset($_GET['activate-multi'])) { + wp_redirect(admin_url("options-general.php?page=civicrm-install")); + exit; + } + update_option('civicrm_setup_do_activation_redirect', 'false'); }