mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Fix upload dir defaults. Props Denis-de-Bernardy. fixes #11276
git-svn-id: https://develop.svn.wordpress.org/trunk@12405 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -189,12 +189,10 @@ function populate_options() {
|
||||
do_action('populate_options');
|
||||
|
||||
if ( ini_get('safe_mode') ) {
|
||||
// Safe mode screws up mkdir(), so we must use a flat structure.
|
||||
// Safe mode can break mkdir() so use a flat structure by default.
|
||||
$uploads_use_yearmonth_folders = 0;
|
||||
$upload_path = WP_CONTENT_DIR;
|
||||
} else {
|
||||
$uploads_use_yearmonth_folders = 1;
|
||||
$upload_path = WP_CONTENT_DIR . '/uploads';
|
||||
}
|
||||
|
||||
$options = array(
|
||||
@@ -265,7 +263,7 @@ function populate_options() {
|
||||
|
||||
// 2.0.1
|
||||
'uploads_use_yearmonth_folders' => $uploads_use_yearmonth_folders,
|
||||
'upload_path' => $upload_path,
|
||||
'upload_path' => '',
|
||||
|
||||
// 2.0.3
|
||||
'secret' => wp_generate_password(64),
|
||||
|
||||
Reference in New Issue
Block a user