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

WordPress Trac noreply at wordpress.org
Fri Jul 18 03:29:24 UTC 2025


#44656: Multiple themes: Empty site title leaves empty anchor tag in header
--------------------------------------------+----------------------------
 Reporter:  tsquez                          |       Owner:  joedolson
     Type:  defect (bug)                    |      Status:  closed
 Priority:  normal                          |   Milestone:  6.9
Component:  Bundled Theme                   |     Version:
 Severity:  normal                          |  Resolution:  fixed
 Keywords:  has-patch has-test-info commit  |     Focuses:  accessibility
--------------------------------------------+----------------------------
Changes (by joedolson):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60483" 60483]:
 {{{
 #!CommitTicketReference repository="" revision="60483"
 Bundled Theme: Prevent output of empty title tags.

 In Twenty Ten, Twenty Eleven, Twenty Twelve, Twenty Thirteen, Twenty
 Fourteen, Twenty Fifteen, Twenty Sixteen, Twenty Seventeen, and Twenty
 Twenty, an empty site title would result in an empty heading and/or an
 empty link in the site header. These can pollute the heading hierarchy and
 add a un-named link in screen reader navigation.

 Prevent the output of wrapping tags if site title or site description have
 no value.

 Props tsquez, audrasjb, sabernhardt, rehanali, sukhendu2002, dilipbheda,
 sirlouen, joedolson.
 Fixes #44656.
 }}}

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


More information about the wp-trac mailing list