[wp-trac] [WordPress Trac] #65098: get_site_icon_url() returns empty string even when fallback is defined, breaking wp-embed-site-icon in the_embed_site_title()

WordPress Trac noreply at wordpress.org
Mon Apr 20 18:10:23 UTC 2026


#65098: get_site_icon_url() returns empty string even when fallback is defined,
breaking wp-embed-site-icon in the_embed_site_title()
--------------------------+---------------------
 Reporter:  pontocinza    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  7.1
Component:  Embeds        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by sabernhardt):

 > Additionally, I can pinpoint when the issue started: it appeared today,
 after I replaced a PNG for a WebP image (and it was not the site icon
 file).

 In February, the site icon image was `pontocinza300.png`, which is no
 longer at the same URL. If that was deleted or renamed, the `site_icon`
 option would not be removed automatically. I noticed that you updated the
 site icon image to `pontocinza512.webp` since opening this ticket, and
 that icon displays for me now, at least in the browser tab (your site does
 not allow embedding posts in a different site).

 > the problem may be triggered by WebP format support (or lack thereof)

 I did not have trouble in an embedded post or browser tab when I set a
 WebP image as the icon in my site (Windows 11 with Chrome, Firefox and
 Edge). However, //browser// support for WebP as a favicon might not be
 good enough yet. [https://learn.microsoft.com/en-
 us/answers/questions/2393228/favicon-not-showing-in-microsoft-edge-using-
 webp-f Edge] and
 [https://support.google.com/webmasters/thread/331465898?hl=en&msgid=331485208
 Google forums] have reports from last year about WebP not displaying
 correctly.

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


More information about the wp-trac mailing list