WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/11/2012 10:22:20 PM (8 years ago)
Author:
nacin
Message:

Remove ms-files.php rewriting from WordPress multisite. fixes #19235.

Keep existing networks compatible with a ms_files_rewriting network option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/schema.php

    r21818 r21823  
    913913        'subdomain_install' => intval( $subdomain_install ),
    914914        'global_terms_enabled' => global_terms_enabled() ? '1' : '0',
     915        'ms_files_rewriting' => is_multisite() ? get_site_option( 'ms_files_rewriting' ) : '0',
    915916        'initial_db_version' => get_option( 'initial_db_version' ),
    916917        'active_sitewide_plugins' => array(),
     
    941942        update_user_meta( $site_user->ID, 'source_domain', $domain );
    942943        update_user_meta( $site_user->ID, 'primary_blog', $blog_id );
    943         if ( !$upload_path = get_option( 'upload_path' ) ) {
    944             $upload_path = substr( WP_CONTENT_DIR, strlen( ABSPATH ) ) . '/uploads';
    945             update_option( 'upload_path', $upload_path );
    946         }
    947         update_option( 'fileupload_url', get_option( 'siteurl' ) . '/' . $upload_path );
    948944    }
    949945
Note: See TracChangeset for help on using the changeset viewer.