[wp-trac] [WordPress Trac] #44656: Empty site title leaves empty anchor tag in header

WordPress Trac noreply at wordpress.org
Fri Jul 27 15:53:05 UTC 2018


#44656: Empty site title leaves empty anchor tag in header
--------------------------+-----------------------------
 Reporter:  tsquez        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  4.9.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I just noticed something weird the other day with Twenty Twelve. I removed
 the title all together (no I did not hide it) and when I looked at the
 source code this is what I saw:

 {{{
 <h1 class="site-title">
         <a href="http://localhost/dev/" rel="home"></a>
 </h1>
 }}}

 It's an H1 tag with an empty anchor? This shouldn't happen I don't think.

 So I download a few other themes and did the same thing and sure enough
 all that was left was an empty H1 tag with an empty anchor tag.

 I do not know why anyone would want to do this **BUT** If the site title
 is removed completely, meaning not hidden and not entered not entered
 either in "**Settings**" or "**Site Identity**" in the customizer, then
 the site H1 site title tag should not be displayed.

 I am not sure if this is a bug so I thought I would enter it in. I looked
 all over and could not find any information or any other tickets regarding
 this.

 I apologize if its a waste of time.

 Thanks in advance.

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


More information about the wp-trac mailing list