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/users.php

    r3864 r3928  
    125125
    126126        if (empty($_POST['users'])) {
    127                 header('Location: ' . $redirect);
     127                wp_redirect($redirect);
    128128        }
    129129
    … …  
    146146        }
    147147
    148         header('Location: ' . add_query_arg('update', $update, $redirect));
     148        wp_redirect(add_query_arg('update', $update, $redirect));
    149149
    150150break;
    … …  
    155155
    156156        if ( empty($_POST['users']) ) {
    157                 header('Location: ' . $redirect);
     157                wp_redirect($redirect);
    158158        }
    159159
    … …  
    186186        $redirect = add_query_arg('delete_count', $delete_count, $redirect);
    187187
    188         header('Location: ' . add_query_arg('update', $update, $redirect));
     188        wp_redirect(add_query_arg('update', $update, $redirect));
    189189
    190190break;
    … …  
    195195
    196196        if ( empty($_POST['users']) )
    197                 header('Location: ' . $redirect);
     197                wp_redirect($redirect);
    198198
    199199        if ( !current_user_can('delete_users') )
    … …  
    262262                $new_user_login = apply_filters('pre_user_login', sanitize_user(stripslashes($_POST['user_login']), true));
    263263                $redirect = add_query_arg('usersearch', $new_user_login, $redirect);
    264                 header('Location: ' . add_query_arg('update', $update, $redirect) . '#user-' . $user_id);
     264                wp_redirect(add_query_arg('update', $update, $redirect) . '#user-' . $user_id);
    265265                die();
    266266        }
Note: See TracChangeset for help on using the changeset viewer.