[wp-trac] [WordPress Trac] #36640: Customize: get_custom_logo should allow the image tag to be filtered independently

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


#36640: Customize: get_custom_logo should allow the image tag to be filtered
independently
------------------------------------+-----------------------------
 Reporter:  achbed                  |       Owner:  SergeyBiryukov
     Type:  enhancement             |      Status:  closed
 Priority:  normal                  |   Milestone:  5.5
Component:  Customize               |     Version:  4.5
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------

Comment (by afercia):

 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/36640#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list