Skip to content
Snippets Groups Projects
Verified Commit 73b77710 authored by Kevin Cristiano's avatar Kevin Cristiano :earth_americas:
Browse files

redirect to setup page on activation

parent b979fadb
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment