Make WordPress Core


Ignore:
Timestamp:
05/27/2008 05:55:24 PM (14 years ago)
Author:
ryan
Message:

Allow wp-content to exist outside of webroot. Props sambauers. see #6938

File:
1 edited

Legend:

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

    r7886 r7999  
    227227        // Safe mode screws up mkdir(), so we must use a flat structure.
    228228        add_option('uploads_use_yearmonth_folders', 0);
    229         add_option('upload_path', 'wp-content');
     229        add_option('upload_path', WP_CONTENT_DIR);
    230230    } else {
    231231        add_option('uploads_use_yearmonth_folders', 1);
    232         add_option('upload_path', 'wp-content/uploads');
     232        add_option('upload_path', WP_CONTENT_DIR . '/uploads');
    233233    }
    234234
Note: See TracChangeset for help on using the changeset viewer.