summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wp-admin/users.php12
-rw-r--r--wp-signup.php4
2 files changed, 8 insertions, 8 deletions
diff --git a/wp-admin/users.php b/wp-admin/users.php
index 83c6cb5..f81b7ea 100644
--- a/wp-admin/users.php
+++ b/wp-admin/users.php
@@ -255,7 +255,7 @@ case 'doremove':
check_admin_referer('remove-users');
if ( empty($_POST['users']) ) {
- header('Location: users.php');
+ wp_redirect('users.php');
}
if ( !current_user_can('edit_users') )
@@ -272,7 +272,7 @@ case 'doremove':
remove_user_from_blog($id);
}
- header('Location: users.php?update=' . $update);
+ wp_redirect('users.php?update=' . $update);
break;
@@ -281,7 +281,7 @@ case 'removeuser':
check_admin_referer('bulk-users');
if (empty($_POST['users'])) {
- header('Location: users.php');
+ wp_redirect('users.php');
}
if ( !current_user_can('edit_users') )
@@ -356,14 +356,14 @@ case 'addexistinguser':
do_action( "added_existing_user", $user_id );
$location = 'users.php?update=add';
}
- header("Location: $location");
+ wp_redirect("$location");
die();
} else {
- header('Location: users.php?update=notfound' );
+ wp_redirect('users.php?update=notfound' );
die();
}
}
- header('Location: users.php');
+ wp_redirect('users.php');
die();
break;
default:
diff --git a/wp-signup.php b/wp-signup.php
index 3d75214..2e26f57 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -8,7 +8,7 @@ require( 'wp-blog-header.php' );
require_once( ABSPATH . WPINC . '/registration.php' );
if( is_array( get_site_option( 'illegal_names' )) && $_GET[ 'new' ] != '' && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
- header( "Location: http://{$current_site->domain}{$current_site->path}" );
+ wp_redirect( "http://{$current_site->domain}{$current_site->path}" );
die();
}
@@ -19,7 +19,7 @@ function signuppageheaders() {
}
if( $current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path ) {
- header( "Location: http://" . $current_site->domain . $current_site->path . "wp-signup.php" );
+ wp_redirect( "http://" . $current_site->domain . $current_site->path . "wp-signup.php" );
die();
}