Make WordPress Core

Changeset 5847


Ignore:
Timestamp:
08/04/2007 03:58:42 AM (17 years ago)
Author:
matt
Message:

If no user ID for whatever reason, bail early.

File:
1 edited

Legend:

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

    r5708 r5847  
    9292    $user_id = (int) $user_id;
    9393
     94    if ( !$user_id )
     95        return false;
     96
    9497    if ( !empty($meta_key) ) {
    9598        $meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key);
Note: See TracChangeset for help on using the changeset viewer.