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

WordPress Trac wp-trac at lists.automattic.com
Sat May 22 00:02:53 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):

 SCRATCH THAT, this instead:

 {{{
 $override = (( !$main_override && WP_CONTENT_DIR . '/uploads' != ABSPATH .
 $upload_path ) || $switched === true);
 if ( defined('UPLOADS') && $override ) {
         $dir = ABSPATH . UPLOADS;
         $url = trailingslashit( $siteurl ) . UPLOADS;
 }

 if ( is_multisite() && $override ) {
         if ( defined( 'BLOGUPLOADDIR' ) )
                 $dir = untrailingslashit(BLOGUPLOADDIR);
         $url = str_replace( UPLOADS, 'files', $url );
 }
 }}}

 That would mean:
 Override IF "not overriding main site and upload path is not the default,
 OR we have switched"

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


More information about the wp-trac mailing list