WordPress.org

Make WordPress Core

Ticket #13317: 13317.patch

File 13317.patch, 375 bytes (added by hakre, 4 years ago)
  • wp-includes/pluggable.php

     
    104104        global $wpdb; 
    105105 
    106106        $user_id = absint($user_id); 
    107         if ( $user_id == 0 ) 
     107        if ( 0 == $user_id ) 
    108108                return false; 
    109109 
    110110        $user = wp_cache_get($user_id, 'users');