Changeset 49843 for trunk/src/wp-includes/class-wp.php
- Timestamp:
- 12/20/2020 02:35:58 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp.php
r49095 r49843 598 598 } 599 599 600 if ( $wp_query->is_author() && isset( $wp_query->post )) {601 $GLOBALS['authordata'] = get_userdata( $wp_query->post->post_author);600 if ( $wp_query->is_author() ) { 601 $GLOBALS['authordata'] = get_userdata( get_queried_object_id() ); 602 602 } 603 603 }
Note: See TracChangeset
for help on using the changeset viewer.