[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 18:25:39 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        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In my archive.php template, if I do this:

 {{{
 get_header();
 the_archive_title( '<h1>', '</h1>' );
 // Rest of code...
 }}}

 and then take a look at example.com/author/joebloggs, I expect to see:

  = Author: Joe Bloggs =

 The problem is if joebloggs hasn't posted yet, I see this:

 = Author: =

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


More information about the wp-trac mailing list