[wp-trac] [WordPress Trac] #49335: On Multisite, wp_get_attachment_image_url returns URL with current site path even though switch_to_blog() is on another
WordPress Trac
noreply at wordpress.org
Sat Jan 13 13:20:56 UTC 2024
#49335: On Multisite, wp_get_attachment_image_url returns URL with current site
path even though switch_to_blog() is on another
--------------------------------+------------------------------
Reporter: aubreypwd | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 5.3.2
Severity: normal | Resolution:
Keywords: | Focuses: multisite
--------------------------------+------------------------------
Comment (by yeykohoju):
Why does wp_get_attachment_image_url() return a URL with the current
site's path even though switch_to_blog() is used to switch to a different
site in WordPress Multisite?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49335#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list