[wp-trac] [WordPress Trac] #37202: the_archive_title() doesn't output the author's display name if that author hasn't posted

WordPress Trac noreply at wordpress.org
Mon Jun 27 22:07:40 UTC 2016


#37202: the_archive_title() doesn't output the author's display name if that author
hasn't posted
--------------------------+------------------------------
 Reporter:  henry.wright  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.5.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by henry.wright):

 I've traced the issue back to the use of the {{{$authordata}}} global,
 which is used inside {{{get_the_author()}}}.

 Dumping {{{$authordata}}} in the author template and then visiting a
 user's archive I get either an object of type {{{WP_User}}} (for users who
 have posted) and {{{null}}} (for users who haven't posted).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37202#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list