[wp-trac] [WordPress Trac] #13733: MS Main Site Uploads Inconsistency
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 5 05:47:37 UTC 2010
#13733: MS Main Site Uploads Inconsistency
--------------------------+-------------------------------------------------
Reporter: filosofo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Multisite | Version: 3.0
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
When you have a fresh MS install with no uploads directory set up for the
main site, according to the following logic in `wp-
includes/functions.php`:
{{{
2129 if ( empty($upload_path) ) {
2130 $dir = WP_CONTENT_DIR . '/uploads';
2131 } else {
2132 $dir = $upload_path;
2133 if ( 'wp-content/uploads' == $upload_path ) {
2134 $dir = WP_CONTENT_DIR . '/uploads';
2135 $main_override = defined( 'MULTISITE' ) &&
is_main_site();
2136 } elseif ( 0 !== strpos($dir, ABSPATH) ) {
2137 // $dir is absolute, $upload_path is (maybe)
relative to ABSPATH
2138 $dir = path_join( ABSPATH, $dir );
2139 }
2140 }
}}}
The uploads directory is set to `wp-content/uploads` with no way of
changing it. This differs from the other, non-main sites.
Since the main site is using the uploads directory, it should have the
uploads directory setting fields available to change it, just like non-MS
WP. Hence patch allows the main site to change the uploads directory just
like non-MS WP.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13733>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list