Make WordPress Core


Ignore:
Timestamp:
11/20/2006 04:29:06 AM (20 years ago)
Author:
ryan
Message:

ID instead of id. Props Nazgul. fixes #3152

File:
1 edited

Legend:

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

    r4480 r4504  
    136136                        wp_die(__('You can’t edit that user.'));
    137137                // The new role of the current user must also have edit_users caps
    138                 if($id == $current_user->id && !$wp_roles->role_objects[$_POST['new_role']]->has_cap('edit_users')) {
     138                if($id == $current_user->ID && !$wp_roles->role_objects[$_POST['new_role']]->has_cap('edit_users')) {
    139139                        $update = 'err_admin_role';
    140140                        continue;
     
    170170                        wp_die(__('You can’t delete that user.'));
    171171
    172                 if($id == $current_user->id) {
     172                if($id == $current_user->ID) {
    173173                        $update = 'err_admin_del';
    174174                        continue;
     
    218218        foreach ( (array) $userids as $id ) {
    219219                $user = new WP_User($id);
    220                 if ( $id == $current_user->id ) {
     220                if ( $id == $current_user->ID ) {
    221221                        echo "<li>" . sprintf(__('ID #%1s: %2s <strong>The current user will not be deleted.</strong>'), $id, $user->user_login) . "</li>\n";
    222222                } else {
     
    228228        $user_dropdown = '<select name="reassign_user">';
    229229        foreach ( (array) $all_logins as $login )
    230                 if ( $login->ID == $current_user->id || !in_array($login->ID, $userids) )
     230                if ( $login->ID == $current_user->ID || !in_array($login->ID, $userids) )
    231231                        $user_dropdown .= "<option value=\"{$login->ID}\">{$login->user_login}</option>";
    232232        $user_dropdown .= '</select>';
Note: See TracChangeset for help on using the changeset viewer.