Changeset 8353
- Timestamp:
- 07/16/2008 04:49:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/wp-includes/functions.php
r8280 r8353 1482 1482 $siteurl = get_option( 'siteurl' ); 1483 1483 $upload_path = get_option( 'upload_path' ); 1484 if ( trim($upload_path) === '' ) 1485 $upload_path = WP_CONTENT_DIR . '/uploads'; 1486 $dir = $upload_path; 1484 $upload_path = trim($upload_path); 1485 if ( empty($upload_path) ) 1486 $dir = WP_CONTENT_DIR . '/uploads'; 1487 else 1488 $dir = $upload_path; 1487 1489 1488 1490 // $dir is absolute, $path is (maybe) relative to ABSPATH 1489 $dir = path_join( ABSPATH, $upload_path ); 1490 1491 if ( !$url = get_option( 'upload_url_path' ) ) 1492 $url = WP_CONTENT_URL . '/uploads'; 1491 $dir = path_join( ABSPATH, $dir ); 1492 1493 if ( !$url = get_option( 'upload_url_path' ) ) { 1494 if ( empty($upload_path) ) 1495 $url = WP_CONTENT_URL . '/uploads'; 1496 else 1497 $url = trailingslashit( $siteurl ) . $upload_path; 1498 } 1493 1499 1494 1500 if ( defined('UPLOADS') ) {
Note: See TracChangeset
for help on using the changeset viewer.