[wp-trac] [WordPress Trac] #58197: $blog_id always returns 0 in get_site_icon_url hook
WordPress Trac
noreply at wordpress.org
Thu Apr 27 18:44:07 UTC 2023
#58197: $blog_id always returns 0 in get_site_icon_url hook
--------------------------+------------------------
Reporter: revxx14 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: Customize | Version: 4.4
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: multisite
--------------------------+------------------------
Comment (by revxx14):
@petitphp if I use the `get_site_icon_url` without adding any sort of
check against `$blog_id`, all of the icons under "My Sites" in the admin
toolbar break. My example is a little simplified, but the goal here is to
use a different icon for each site in the multisite. The particular site
that I'm trying to set this up on returns `7` for `get_current_blog_id()`,
so I don't understand why `$blog_id` returns `0`. Shouldn't that change
for each site in the multisite?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58197#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list