Use wp_redirect().

git-svn-id: http://svn.automattic.com/wordpress/trunk@3928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2006-06-27 05:38:56 +00:00
parent 9b8a99e398
commit ff19f4b5a5
19 changed files with 53 additions and 54 deletions

View File

@@ -37,7 +37,7 @@ switch ($action) {
//for each link id (in $linkcheck[]) change category to selected value
if (count($linkcheck) == 0) {
header('Location: '.$this_file);
wp_redirect($this_file);
exit;
}
@@ -49,7 +49,7 @@ switch ($action) {
$deleted++;
}
header("Location: $this_file?deleted=$deleted");
wp_redirect("$this_file?deleted=$deleted");
break;
case 'move' :
@@ -61,14 +61,14 @@ switch ($action) {
//for each link id (in $linkcheck[]) change category to selected value
if (count($linkcheck) == 0) {
header('Location: '.$this_file);
wp_redirect($this_file);
exit;
}
$all_links = join(',', $linkcheck);
// should now have an array of links we can change
//$q = $wpdb->query("update $wpdb->links SET link_category='$category' WHERE link_id IN ($all_links)");
header('Location: '.$this_file);
wp_redirect($this_file);
break;
case 'add' :
@@ -76,7 +76,7 @@ switch ($action) {
add_link();
header('Location: '.wp_get_referer().'?added=true');
wp_redirect(wp_get_referer().'?added=true');
break;
case 'save' :