Skip to content

Commit

Permalink
Merge pull request #206 from plausible/fix_enhanced_measurement_toggles
Browse files Browse the repository at this point in the history
Added an extra check to make sure self-hosters are never redirected to the settings screen after updating.
  • Loading branch information
Dan0sz authored May 8, 2024
2 parents a74f205 + 421fb25 commit e766417
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Admin/Actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ public function maybe_redirect_to_wizard() {
return;
}

$wizard_done = get_option( 'plausible_analytics_wizard_done', false );
// Self-hosters should never be redirected to the settings screen, because the wizard isn't shown to them.
$wizard_done = get_option( 'plausible_analytics_wizard_done', false ) || ! empty( Helpers::get_settings()[ 'self_hosted_domain' ] );

if ( ! $wizard_done ) {
$url = admin_url( 'options-general.php?page=plausible_analytics#welcome_slide' );
Expand Down

0 comments on commit e766417

Please sign in to comment.