[wp-trac] [WordPress Trac] #13483: fileupload_url / upload_url_path

WordPress Trac wp-trac at lists.automattic.com
Sat May 22 00:41:09 UTC 2010


#13483: fileupload_url / upload_url_path
--------------------------+-------------------------------------------------
 Reporter:  jimisaacs     |       Owner:                                                      
     Type:  defect (bug)  |      Status:  new                                                 
 Priority:  high          |   Milestone:  3.0                                                 
Component:  Multisite     |     Version:  3.0                                                 
 Severity:  major         |    Keywords:  multisite attachments fileupload_url upload_url_path
--------------------------+-------------------------------------------------

Comment(by jimisaacs):

 Ok I was trying to find out why the empty check was like that, and I think
 I've got the problem.

 In my version of the db, I had not value in for the upload_path option, in
 all of my blogs.

 In the function install_blog() there is the line:
 {{{
 update_option('upload_path', "wp-content/blogs.dir/" . $blog_id .
 "/files");
 }}}

 This is the only place this occurs, it does not occur in the upgrade or
 network upgrade processes.

 Then in the wp_upload_dir(), it checks for empty because a multisite
 installation from the previous logic, should always have a value within
 the upload_path option based on the installation process.

 The problem now is two things, that option never got installed or updated
 for me.
 It worked with no value in my previous version, and it doesn't work with
 no value in my current version.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13483#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list