[wp-trac] [WordPress Trac] #13483: fileupload_url / upload_url_path
WordPress Trac
wp-trac at lists.automattic.com
Thu May 27 16:05:31 UTC 2010
#13483: fileupload_url / upload_url_path
--------------------------+-------------------------------------------------
Reporter: jimisaacs | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: Future Release
Component: Multisite | Version: 3.0
Severity: major | Keywords: multisite attachments fileupload_url upload_url_path
--------------------------+-------------------------------------------------
Comment(by wpmuguru):
The issue being reported is after a switch_to_blog. In MU, wp_upload_dir
returned the settings for the original unswitched blog after a
switch_to_blog.
Original (in MU)
{{{
array(6) {
["path"]=>
string(69) "/home/ron/NetBeansProjects/trunk/wp-
content/blogs.dir/1/files/2010/05"
["url"]=>
string(32) "http://mutrunk.loc/files/2010/05"
["subdir"]=>
string(8) "/2010/05"
["basedir"]=>
string(62) "/home/ron/NetBeansProjects/trunk/wp-
content/blogs.dir/1/files/"
["baseurl"]=>
string(24) "http://mutrunk.loc/files"
["error"]=>
bool(false)
}
}}}
While switched (in MU)
{{{
array(6) {
["path"]=>
string(69) "/home/ron/NetBeansProjects/trunk/wp-
content/blogs.dir/1/files/2010/05"
["url"]=>
string(41) "http://mutrunk.loc/testblog/files/2010/05"
["subdir"]=>
string(8) "/2010/05"
["basedir"]=>
string(62) "/home/ron/NetBeansProjects/trunk/wp-
content/blogs.dir/1/files/"
["baseurl"]=>
string(33) "http://mutrunk.loc/testblog/files"
["error"]=>
bool(false)
}
}}}
Unless the current code is doing something different for an upgraded MU
install, then the issue is not a bug.
If you install the network now, it does set the upload_path option if the
option is blank. If the option is not blank that means the install is
using a custom content setup and it will be up to the site owner to
implement the custom content setup for the network.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13483#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list