Changeset 21485 for trunk/wp-includes/functions.php
- Timestamp:
- 08/09/2012 04:28:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r21373 r21485 1433 1433 */ 1434 1434 function wp_upload_dir( $time = null ) { 1435 global $ switched;1435 global $_wp_switched; 1436 1436 $siteurl = get_option( 'siteurl' ); 1437 1437 $upload_path = get_option( 'upload_path' ); … … 1457 1457 } 1458 1458 1459 if ( defined('UPLOADS') && ! $main_override && ( !isset( $switched ) || $switched === false )) {1459 if ( defined('UPLOADS') && ! $main_override && ! $_wp_switched ) { 1460 1460 $dir = ABSPATH . UPLOADS; 1461 1461 $url = trailingslashit( $siteurl ) . UPLOADS; 1462 1462 } 1463 1463 1464 if ( is_multisite() && ! $main_override && ( !isset( $switched ) || $switched === false )) {1464 if ( is_multisite() && ! $main_override && ! $_wp_switched ) { 1465 1465 if ( defined( 'BLOGUPLOADDIR' ) ) 1466 1466 $dir = untrailingslashit(BLOGUPLOADDIR);
Note: See TracChangeset
for help on using the changeset viewer.