[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
Fri Jan 31 16:51:25 UTC 2014
#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:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version: 3.6.1
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
--------------------------+------------------------------
Comment (by igmoweb):
I'm not completely sure but in case it helps, I think a fix would be
replace current 1578 line in wp-includes/functions.php:
$url = WP_CONTENT_URL . '/uploads';
For something like
$url = get_option('siteurl') . '/wp-content/uploads';
But the problem now would be that the user could not change the content
url by himself using WP_CONTENT_URL constant. Or at least, new issues
would come, I guess.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25650#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list