Make WordPress Core


Ignore:
Timestamp:
06/27/2006 11:10:02 PM (18 years ago)
Author:
ryan
Message:

Use wp_redirect().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/users.php

    r3771 r3937  
    1515
    1616    if (empty($_POST['users'])) {
    17         header('Location: users.php');
     17        wp_redirect('users.php');
    1818    }
    1919
     
    3434    }
    3535       
    36     header('Location: users.php?update=' . $update);
     36    wp_redirect('users.php?update=' . $update);
    3737
    3838break;
     
    4343
    4444    if ( empty($_POST['users']) ) {
    45         header('Location: users.php');
     45        wp_redirect('users.php');
    4646    }
    4747
     
    6767    }
    6868
    69     header('Location: users.php?update=' . $update);
     69    wp_redirect('users.php?update=' . $update);
    7070
    7171break;
     
    7575    check_admin_referer('bulk-users');
    7676
    77     if (empty($_POST['users'])) {
    78         header('Location: users.php');
    79     }
     77    if ( empty($_POST['users']) )
     78        wp_redirect('users.php');
    8079
    8180    if ( !current_user_can('edit_users') )
     
    138137   
    139138    if(count($errors) == 0) {
    140         header('Location: users.php?update=add');
     139        wp_redirect('users.php?update=add');
    141140        die();
    142141    }
Note: See TracChangeset for help on using the changeset viewer.