wp_redirects
This commit is contained in:
parent
9e5c0fbf67
commit
4826a574a0
|
@ -469,7 +469,7 @@ class WC_Admin_Welcome {
|
||||||
if ( ( isset( $_GET['action'] ) && 'upgrade-plugin' == $_GET['action'] ) && ( isset( $_GET['plugin'] ) && strstr( $_GET['plugin'], 'woocommerce.php' ) ) )
|
if ( ( isset( $_GET['action'] ) && 'upgrade-plugin' == $_GET['action'] ) && ( isset( $_GET['plugin'] ) && strstr( $_GET['plugin'], 'woocommerce.php' ) ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wp_safe_redirect( admin_url( 'index.php?page=wc-about' ) );
|
wp_redirect( admin_url( 'index.php?page=wc-about' ) );
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ class WC_Install {
|
||||||
delete_transient( '_wc_activation_redirect' );
|
delete_transient( '_wc_activation_redirect' );
|
||||||
|
|
||||||
// What's new redirect
|
// What's new redirect
|
||||||
wp_safe_redirect( admin_url( 'index.php?page=wc-about&wc-installed=true' ) );
|
wp_redirect( admin_url( 'index.php?page=wc-about&wc-installed=true' ) );
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
// Skip button
|
// Skip button
|
||||||
|
@ -67,7 +67,7 @@ class WC_Install {
|
||||||
flush_rewrite_rules();
|
flush_rewrite_rules();
|
||||||
|
|
||||||
// What's new redirect
|
// What's new redirect
|
||||||
wp_safe_redirect( admin_url( 'index.php?page=wc-about' ) );
|
wp_redirect( admin_url( 'index.php?page=wc-about' ) );
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
// Update button
|
// Update button
|
||||||
|
@ -81,7 +81,7 @@ class WC_Install {
|
||||||
delete_transient( '_wc_activation_redirect' );
|
delete_transient( '_wc_activation_redirect' );
|
||||||
|
|
||||||
// What's new redirect
|
// What's new redirect
|
||||||
wp_safe_redirect( admin_url( 'index.php?page=wc-about&wc-updated=true' ) );
|
wp_redirect( admin_url( 'index.php?page=wc-about&wc-updated=true' ) );
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue