[wp-trac] [WordPress Trac] #25650: When switching between blogs, wp_upload_dir 'baseurl' and 'url' may be pointing to the current blog not the switched one
WordPress Trac
noreply at wordpress.org
Thu Jun 5 12:00:21 UTC 2025
#25650: When switching between blogs, wp_upload_dir 'baseurl' and 'url' may be
pointing to the current blog not the switched one
--------------------------------------+-----------------------------
Reporter: igmoweb | Owner: ideag
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future Release
Component: Upload | Version: 3.6.1
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: multisite
--------------------------------------+-----------------------------
Comment (by ideag):
@johnjamesjacoby - do you have any specific suggestions for an alternate
approach?
I have explored a way to avoid introducing a new constant here:
https://core.trac.wordpress.org/ticket/25650#comment:16
In my opinion, that solution would be worse than the one using a constant.
I do not see a way to avoid modifying `content_url()`, as that is where
the actual bug is. If that is a deal breaker, then I would say this is a
`wontfix` and should just be closed as such.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25650#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list