mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
allow existing media path on main site when converting to multisite, see #12549
git-svn-id: https://develop.svn.wordpress.org/trunk@13619 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -726,6 +726,10 @@ Thanks!
|
||||
$blog_id = $wpdb->insert_id;
|
||||
update_user_meta( $site_user->ID, 'source_domain', $domain );
|
||||
update_user_meta( $site_user->ID, 'primary_blog', $blog_id );
|
||||
if ( !$upload_path = get_option( 'upload_path' ) ) {
|
||||
$upload_path = substr( WP_CONTENT_DIR, strlen( ABSPATH ) ) . '/uploads';
|
||||
update_option( 'upload_path', $upload_path );
|
||||
}
|
||||
}
|
||||
|
||||
if ( $vhost == 'yes' )
|
||||
|
||||
Reference in New Issue
Block a user