Make WordPress Core


Ignore:
Timestamp:
12/15/2009 05:53:51 PM (15 years ago)
Author:
ryan
Message:

Fix upload dir defaults. Props Denis-de-Bernardy. fixes #11276

File:
1 edited

Legend:

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

    r12329 r12405  
    190190
    191191    if ( ini_get('safe_mode') ) {
    192         // Safe mode screws up mkdir(), so we must use a flat structure.
     192        // Safe mode can break mkdir() so use a flat structure by default.
    193193        $uploads_use_yearmonth_folders = 0;
    194         $upload_path = WP_CONTENT_DIR;
    195194    } else {
    196195        $uploads_use_yearmonth_folders = 1;
    197         $upload_path = WP_CONTENT_DIR . '/uploads';
    198196    }
    199197
     
    266264    // 2.0.1
    267265    'uploads_use_yearmonth_folders' => $uploads_use_yearmonth_folders,
    268     'upload_path' => $upload_path,
     266    'upload_path' => '',
    269267
    270268    // 2.0.3
Note: See TracChangeset for help on using the changeset viewer.