WordPress.org

Make WordPress Core

Changeset 14695


Ignore:
Timestamp:
05/16/10 20:34:02 (4 years ago)
Author:
westi
Message:

Don't return data for user 1 when passed in junk like an array. See #13317.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r14579 r14695  
    104104    global $wpdb; 
    105105 
     106    if ( ! is_numeric( $user_id ) ) 
     107        return false; 
     108         
    106109    $user_id = absint( $user_id ); 
    107110    if ( ! $user_id ) 
    108111        return false; 
    109  
     112     
    110113    $user = wp_cache_get( $user_id, 'users' ); 
    111114 
Note: See TracChangeset for help on using the changeset viewer.