Introducing wp_redirect(), first cut. http://mosquito.wordpress.org/view.php?id=592 Props: Toby Simmons

git-svn-id: https://develop.svn.wordpress.org/trunk@2436 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-03-13 16:36:09 +00:00
parent 73b0feb5b8
commit df3fb34a70
8 changed files with 21 additions and 9 deletions
+2 -2
View File
@@ -243,7 +243,7 @@ switch ($action) {
WHERE link_id=$link_id");
} // end if save
setcookie('links_show_cat_id_' . COOKIEHASH, $links_show_cat_id, time()+600);
header('Location: ' . $this_file);
wp_redirect($this_file);
break;
} // end Save
@@ -267,7 +267,7 @@ switch ($action) {
}
$links_show_cat_id = $cat_id;
setcookie('links_show_cat_id_' . COOKIEHASH, $links_show_cat_id, time()+600);
header('Location: '.$this_file);
wp_redirect($this_file);
break;
} // end Delete
+1 -1
View File
@@ -84,7 +84,7 @@ case 'update':
$referred = remove_query_arg('updated' , $_SERVER['HTTP_REFERER']);
$goback = add_query_arg('updated', 'true', $_SERVER['HTTP_REFERER']);
$goback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $goback);
header('Location: ' . $goback);
wp_redirect($goback);
break;
default:
+1 -1
View File
@@ -86,7 +86,7 @@ case 'update':
$result = $wpdb->query("UPDATE $wpdb->users SET user_firstname='$newuser_firstname', $updatepassword user_lastname='$newuser_lastname', user_nickname='$newuser_nickname', user_icq='$newuser_icq', user_email='$newuser_email', user_url='$newuser_url', user_aim='$newuser_aim', user_msn='$newuser_msn', user_yim='$newuser_yim', user_idmode='$newuser_idmode', user_description = '$user_description', user_nicename = '$newuser_nicename' WHERE ID = $user_ID");
header('Location: profile.php?updated=true');
wp_redirect('profile.php?updated=true');
break;
case 'IErightclick':