Ticket #44183: 44183.2.diff
| File 44183.2.diff, 511 bytes (added by , 5 years ago) |
|---|
-
src/wp-includes/class-wp.php
597 597 $GLOBALS['single'] = 1; 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 } 604 604