Skip to content

Commit c117ebe

Browse files
committed
Removed major redirect for Redux, only on initial install now.
1 parent f1ec32a commit c117ebe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ReduxCore/inc/welcome/welcome.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ public function check_version() {
8484
$redirect = false;
8585
if ( empty( $saveVer ) ) {
8686
$redirect = true; // First time
87-
} else if ( version_compare( $curVer, $saveVer, '>' ) ) {
88-
$redirect = true; // Previous version
8987
}
88+
// Removing redirect except for the first time with the plugin installed. :) Less annoying until we actually use this page.
89+
//else if ( version_compare( $curVer, $saveVer, '>' ) ) {
90+
// $redirect = true; // Previous version
91+
//}
9092
if ( $redirect && ! defined( 'WP_TESTS_DOMAIN' ) && ReduxFramework::$_as_plugin ) {
9193
add_action( 'init', array( $this, 'do_redirect' ) );
9294
}

0 commit comments

Comments
 (0)