﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
21731,ms-default-constants.php takes static wp-content instead should use WP_CONTENT_DIR variable,anantshri,,"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/"" );
	}
}



}}}
",defect (bug),closed,normal,,Multisite,3.4.1,normal,duplicate,needs-patch,
