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' ) ) )
|
||||
return;
|
||||
|
||||
wp_safe_redirect( admin_url( 'index.php?page=wc-about' ) );
|
||||
wp_redirect( admin_url( 'index.php?page=wc-about' ) );
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ class WC_Install {
|
|||
delete_transient( '_wc_activation_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;
|
||||
|
||||
// Skip button
|
||||
|
@ -67,7 +67,7 @@ class WC_Install {
|
|||
flush_rewrite_rules();
|
||||
|
||||
// What's new redirect
|
||||
wp_safe_redirect( admin_url( 'index.php?page=wc-about' ) );
|
||||
wp_redirect( admin_url( 'index.php?page=wc-about' ) );
|
||||
exit;
|
||||
|
||||
// Update button
|
||||
|
@ -81,7 +81,7 @@ class WC_Install {
|
|||
delete_transient( '_wc_activation_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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue