[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 21:07:53 UTC 2023


#58197: $blog_id always returns 0 in get_site_icon_url hook
--------------------------+------------------------
 Reporter:  revxx14       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.3
Component:  Customize     |     Version:  4.4
 Severity:  normal        |  Resolution:  invalid
 Keywords:  needs-patch   |     Focuses:  multisite
--------------------------+------------------------
Changes (by revxx14):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 @petitphp Ah, I see, that does make a little more sense, though I'd still
 argue that returning `0` for this filter in the multisite context is very
 confusing and should be changed. I'm not the biggest fan of having to hard
 code a database value (the `$blog_id` value of `7`), I'd hoped to be able
 to pull everything from the database automatically, but oh well, this will
 do. Thanks!

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


More information about the wp-trac mailing list