WordPress.org

Make WordPress Core

Changeset 15151


Ignore:
Timestamp:
06/06/10 15:12:47 (4 years ago)
Author:
ryan
Message:

Cast to int

File:
1 edited

Legend:

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

    r15150 r15151  
    6767    $update = 'promote'; 
    6868    foreach ( $userids as $id ) { 
     69        $id = (int) $id; 
     70 
    6971        if ( ! current_user_can('promote_user', $id) ) 
    7072            wp_die(__('You can’t edit that user.')); 
     
    107109 
    108110    foreach ( (array) $userids as $id) { 
     111        $id = (int) $id; 
     112 
    109113        if ( ! current_user_can( 'delete_user', $id ) ) 
    110114            wp_die(__( 'You can’t delete that user.' ) ); 
Note: See TracChangeset for help on using the changeset viewer.