Make WordPress Core


Ignore:
Timestamp:
07/13/2010 09:27:05 PM (16 years ago)
Author:
nacin
Message:

Fix checking for whether WP_User object is actually a user. props filosofo, fixes #13903 for trunk.

File:
1 edited

Legend:

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

    r15355 r15404  
    11131113    $author = new WP_User( $post->post_author );
    11141114
    1115     if ( empty( $author ) )
     1115    if ( empty( $author->ID ) )
    11161116        return false;
    11171117
Note: See TracChangeset for help on using the changeset viewer.