wp_redirects

This commit is contained in:
Mike Jolley 2013-12-04 12:20:18 +00:00
parent 9e5c0fbf67
commit 4826a574a0
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}