mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-01 21:21:24 +01:00
Fix UPLOADS constant. see #14840.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f8c8df4f8b
commit
4850c82d1c
@ -2124,7 +2124,7 @@ function wp_upload_dir( $time = null ) {
|
||||
$siteurl = get_option( 'siteurl' );
|
||||
$upload_path = get_option( 'upload_path' );
|
||||
$upload_path = trim($upload_path);
|
||||
$main_override = defined( 'MULTISITE' ) && is_main_site();
|
||||
$main_override = is_multisite() && defined( 'MULTISITE' ) && is_main_site();
|
||||
if ( empty($upload_path) ) {
|
||||
$dir = WP_CONTENT_DIR . '/uploads';
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user