[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
Tue Apr 21 17:33:39 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 has-test-info | Focuses:
-------------------------------------+---------------------
Changes (by abcd95):
* keywords: has-patch => has-patch has-test-info
Comment:
== Test Report
=== Description
This report validates whether the indicated patch works as expected.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/11601
=== Environment
- WordPress: 7.1-alpha-62161-src
- PHP: 8.3.30
- Server: nginx/1.29.8
- Database: mysqli (Server: 8.4.8 / Client: mysqlnd 8.3.30)
- Browser: Chrome 147.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.4
=== Reproduction Steps
1. Created a test post ("Test Embed Post") and visited
`/?p={postID}&embed=true`
2. Simulated broken get_site_icon_url()
via add_filter( 'get_site_icon_url', '__return_empty_string' )
3. Confirmed bug: <img src="" srcset=" 2x"> in the embed footer
4. Applied patch from PR #11601
5. Re-tested the same embed URL
=== Actual Results
✅ The issue is resolved after applying the patch.
=== Supplemental Artifacts
Before patch
[[Image(https://i.ibb.co/Y7vF0mhc/Screenshot-2026-04-21-at-22-49-06.png)]]
After patch
[[Image(https://i.ibb.co/XrdB3Stg/Screenshot-2026-04-21-at-22-48-04.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65098#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list