Use wp_redirect().

git-svn-id: https://develop.svn.wordpress.org/trunk@3928 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-06-27 05:38:56 +00:00
parent 7028e093b6
commit 23e2a0a25f
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' :