Make WordPress Core

Changeset 25585


Ignore:
Timestamp:
09/23/2013 09:43:25 PM (10 years ago)
Author:
nacin
Message:

Avoid a notice. see #14408, [25574].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp.php

    r25574 r25585  
    469469        }
    470470
    471         if ( $wp_query->is_author() && $wp_query->post )
     471        if ( $wp_query->is_author() && isset( $wp_query->post ) )
    472472            $GLOBALS['authordata'] = get_userdata( $wp_query->post->post_author );
    473473    }
Note: See TracChangeset for help on using the changeset viewer.