[wp-trac] [WordPress Trac] #37011: Don’t link custom logo if it’s displayed on the front page

WordPress Trac noreply at wordpress.org
Fri Jul 3 12:56:59 UTC 2020


#37011: Don’t link custom logo if it’s displayed on the front page
-------------------------------------------------+-------------------------
 Reporter:  FlorianBrinkmann                     |       Owner:  joedolson
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.5
Component:  Themes                               |     Version:  4.6
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note 2nd-        |     Focuses:
  opinion                                        |  accessibility
-------------------------------------------------+-------------------------
Changes (by afercia):

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


Comment:

 In [changeset:"48283" 48283]:
 {{{
 #!CommitTicketReference repository="" revision="48283"
 Accessibility: Themes: Use a default empty alt attribute for the non-
 linked custom logo on the home page.

 After [48039] it became clear that the non-linked custom logo on the home
 page needs an empty alt attribute, as in most of the cases the logo is
 decorative and doesn't need its purpose to be described.

 This change outputs an empty alt attribute by default for the custom logo
 on the home page. If necessary, it is possible to use the new
 'get_custom_logo_image_attributes' filter to manipulate the default
 attributes for the logo image and set an alt attribute.

 Props FlorianBrinkmann, Soean, sabernhardt, audrasjb, SergeyBiryukov,
 samful, knutsp.
 See #36640.
 Fixes #37011.
 }}}

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


More information about the wp-trac mailing list