[wp-trac] [WordPress Trac] #42537: Remove title attributes: wp-login.php

WordPress Trac noreply at wordpress.org
Wed Mar 6 16:59:41 UTC 2019


#42537: Remove title attributes: wp-login.php
---------------------------------------+----------------------------
 Reporter:  SergeyBiryukov             |       Owner:  afercia
     Type:  defect (bug)               |      Status:  assigned
 Priority:  normal                     |   Milestone:  5.2
Component:  Login and Registration     |     Version:  4.9
 Severity:  normal                     |  Resolution:
 Keywords:  has-patch title-attribute  |     Focuses:  accessibility
---------------------------------------+----------------------------

Comment (by afercia):

 Looking a bit more into this, seems to me the current behavior on
 multisite is wrong.

 Markup on the main network site:

 {{{
 <a href="http://wpmultisite.test/" title="My network title">Main site
 title</a>
 }}}

 - the URL points to the Network home
 - the title attribute is the Network name (`site_name`)
 - the text is the main site name (`blogname`), so it can be different from
 the title attribute and potentially confusing

 Markup on one of the network sites:

 {{{
 <a href="http://wpmultisite.test/" title="My network title">Site 1
 title</a>
 }}}

 - the URL still points to the Network home
 - the title attribute is still the Network name (`site_name`)
 - however, the text is the site name, which is inconsistent with the URL
 and title attribute

 One more reason to simplify and remove the title attribute.

 The link text should also match the URL and always be the name of the
 ''main site''. Or, the URL should change and match the link text. This
 basically needs an answer to the question: where the WordPress logo should
 link to?

 Worth also considering that, by default, the WordPress logo is displayed
 in all the three possible cases:
 - single site
 - network main site
 - network sites

 Why the WordPress logo should be used to link to the network in the first
 place? I'd rather consider to drastically simplify and make it always link
 by default to `https://wordpress.org/`. Thus, there wouldn't be any
 ambiguity or potential confusion: it's the WordPress logo: it links to
 `https://wordpress.org/`. Simple, clear.

 The filters would still allow to change everything, if desired: logo, URL,
 and link text.

 /Cc @jeremyfelt

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


More information about the wp-trac mailing list