WordPress.org

Make WordPress Core

Ticket #13317: 13317.2.patch

File 13317.2.patch, 497 bytes (added by hakre, 8 years ago)

if you're in for ! (instead of 0 == ), spare the absint() call while userid is false

  • wp-includes/pluggable.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    103103function get_userdata( $user_id ) {
    104104        global $wpdb;
    105105
    106         $user_id = absint( $user_id );
    107106        if ( ! $user_id )
    108107                return false;
    109108
     109        $user_id = absint( $user_id );
     110
    110111        $user = wp_cache_get( $user_id, 'users' );
    111112
    112113        if ( $user )