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

WordPress Trac wp-trac at lists.automattic.com
Fri May 21 22:07:29 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 ryan):

 It could be due to the is_main_site() check introduced in [14680].
 is_main_site() seems to use $current_blog->blog_id rather than $blog_id.
 switch_to_blog() doesn't seem to do anything with $current_blog.  Either
 is_main_site() should use $blog_id(), or maybe wp_upload_dir() should not
 set $main_override if switched.  Can you revert [14680] and restore your
 fileupload_url setting on and see if it helps?

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


More information about the wp-trac mailing list