Make WordPress Core


Ignore:
Timestamp:
03/23/2011 09:25:35 PM (13 years ago)
Author:
markjaquith
Message:

Prevent Notice if the author object is not set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/author-template.php

    r17100 r17548  
    204204
    205205    global $authordata;
     206    if ( !is_object( $authordata ) )
     207        return false;
    206208    $link = sprintf(
    207209        '<a href="%1$s" title="%2$s">%3$s</a>',
Note: See TracChangeset for help on using the changeset viewer.