Make WordPress Core


Ignore:
Timestamp:
06/27/2006 05:38:56 AM (20 years ago)
Author:
ryan
Message:

Use wp_redirect().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/link.php

    r3918 r3928  
    3838                //for each link id (in $linkcheck[]) change category to selected value
    3939                if (count($linkcheck) == 0) {
    40                         header('Location: '.$this_file);
     40                        wp_redirect($this_file);
    4141                        exit;
    4242                }
    … …  
    5050                }
    5151
    52                 header("Location: $this_file?deleted=$deleted");
     52                wp_redirect("$this_file?deleted=$deleted");
    5353                break;
    5454
    … …  
    6262                //for each link id (in $linkcheck[]) change category to selected value
    6363                if (count($linkcheck) == 0) {
    64                         header('Location: '.$this_file);
     64                        wp_redirect($this_file);
    6565                        exit;
    6666                }
    … …  
    6969                //$q = $wpdb->query("update $wpdb->links SET link_category='$category' WHERE link_id IN ($all_links)");
    7070
    71                 header('Location: '.$this_file);
     71                wp_redirect($this_file);
    7272                break;
    7373
    … …  
    7777                add_link();
    7878
    79                 header('Location: '.wp_get_referer().'?added=true');
     79                wp_redirect(wp_get_referer().'?added=true');
    8080                break;
    8181
Note: See TracChangeset for help on using the changeset viewer.