[wp-trac] [WordPress Trac] #13128: upload/crop avatar in multisite setup (solution proposed)

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 26 20:03:00 UTC 2010


#13128: upload/crop avatar in multisite setup (solution proposed)
--------------------------+-------------------------------------------------
 Reporter:  psycolor      |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.0
Component:  Upload        |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
 there are two problems here:
 - the htaccess file need to be changed for wp 3.0 (and i guess it was the
 same for wp2.9.2?)
 - the settings of the main blog must also be modified.

 this is what is in my htaccess for wp 3.0

 RewriteEngine On
 RewriteBase /

 # uploaded files
 RewriteRule ^(.*/)?files/$ index.php [L]
 RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
 RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^ - [L]
 RewriteRule . index.php [L]

 # add a trailing slash to /wp-admin
 RewriteCond %{REQUEST_URI} ^.*/wp-admin$
 RewriteRule ^(.+)$ $1/ [R=301,L]

 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule . - [L]
 RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
 RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
 RewriteRule . index.php [L]

 <IfModule mod_security.c>
 <Files async-upload.php>
 SecFilterEngine Off
 SecFilterScanPOST Off
 </Files>
 </IfModule>


 the settings of the main blog can be accessed via the 'sites' under
 superadmin and then 'edit', all the site options are under there

 (as i didn't use the WPMU before i struggled to find the options for a
 while!)

 here there are 3 different entries for upload (don't ask me why)
 1- upload path: i set this to    wp-content/blogs.dir/1/files
 2- upload url path: i left this blank as after a few experiment doesn't
 seem to do anything
 3- file upload url: also left blank as it seems to duplicate the base url

 i'm guessing this might be a bug, but as i'm not too sure about why there
 are three different upload entries for me it does solve the problem; you
 can double check if the extra variables are an effect of the merge.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13128>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list