[wp-trac] [WordPress Trac] #21731: ms-default-constants.php takes static wp-content instead should use WP_CONTENT_DIR variable
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 29 18:45:19 UTC 2012
#21731: ms-default-constants.php takes static wp-content instead should use
WP_CONTENT_DIR variable
--------------------------+-----------------------------
Reporter: anantshri | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Multisite | Version: 3.4.1
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
Hi,
refer to the line marked with -> this line is using wp-content as a static
string which may not always be the case. not sure if it will affect and be
a show stopper. but i think the code should be updated.
{{{
function ms_upload_constants( ) {
global $wpdb;
/** @since 3.0.0 */
// Base uploads dir relative to ABSPATH
if ( !defined( 'UPLOADBLOGSDIR' ) )
-> define( 'UPLOADBLOGSDIR', 'wp-content/blogs.dir' );
/** @since 3.0.0 */
if ( !defined( 'UPLOADS' ) ) {
// Uploads dir relative to ABSPATH
define( 'UPLOADS', UPLOADBLOGSDIR .
"/{$wpdb->blogid}/files/" );
if ( 'wp-content/blogs.dir' == UPLOADBLOGSDIR )
define( 'BLOGUPLOADDIR', WP_CONTENT_DIR .
"/blogs.dir/{$wpdb->blogid}/files/" );
}
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21731>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list