[wp-trac] [WordPress Trac] #60922: get_custom_logo returns an empty link when no logo image is set

WordPress Trac noreply at wordpress.org
Mon May 27 16:39:28 UTC 2024


#60922: get_custom_logo returns an empty link when no logo image is set
-------------------------------------------------+-------------------------
 Reporter:  afercia                              |       Owner:  joedolson
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.6
Component:  Themes                               |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch dev-feedback needs-        |     Focuses:
  testing commit                                 |  accessibility
-------------------------------------------------+-------------------------
Changes (by joedolson):

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


Comment:

 In [changeset:"58213" 58213]:
 {{{
 #!CommitTicketReference repository="" revision="58213"
 Themes: Accessibility: Logo block returns empty link when image not set.

 The logo block does not use theme mods, and instead saves a site-wide
 option `site_logo` to use as the site logo.

 Add handling for cases where the logo image does not exist and delete the
 `site_logo` option when the attachment configured as site logo is deleted.

 Props afercia, joedolson, khokansardar, SergeyBiryukov.
 Fixes #60922.
 }}}

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


More information about the wp-trac mailing list