Advertisements

ms_upload_constants

Definition:
function ms_upload_constants( ) {}

Defines Multisite upload constants.

Source code

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/" );

2413

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: