[wp-trac] [WordPress Trac] #49086: The "site_icon" option isn't always removed when the site icon is deleted

WordPress Trac noreply at wordpress.org
Thu Jan 6 02:31:38 UTC 2022


#49086: The "site_icon" option isn't always removed when the site icon is deleted
------------------------------------+------------------------------
 Reporter:  henry.wright            |       Owner:  (none)
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Media                   |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+------------------------------

Comment (by r-a-y):

 I can confirm this bug. If a site icon is manually deleted from the Media
 Library, the corresponding `site_icon` option is never updated or removed.

 Although a developer can use `has_site_icon()` to determine the existence
 of a site icon, some might use `get_option( 'blog_icon' )` directly as
 @henrywright mentions.

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


More information about the wp-trac mailing list