Changeset 8369 for trunk/wp-includes/functions.php
- Timestamp:
- 07/18/2008 03:19:12 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r8352 r8369 1490 1490 // $dir is absolute, $path is (maybe) relative to ABSPATH 1491 1491 $dir = path_join( ABSPATH, $dir ); 1492 1492 1493 1493 if ( !$url = get_option( 'upload_url_path' ) ) { 1494 if ( empty($upload_path) )1494 if ( empty($upload_path) or ( $upload_path == $dir ) ) 1495 1495 $url = WP_CONTENT_URL . '/uploads'; 1496 1496 else … … 1524 1524 return array( 'error' => $message ); 1525 1525 } 1526 1526 1527 1527 $uploads = array( 'path' => $dir, 'url' => $url, 'subdir' => $subdir, 'basedir' => $bdir, 'baseurl' => $burl, 'error' => false ); 1528 1528 1529 return apply_filters( 'upload_dir', $uploads ); 1529 1530 }
Note: See TracChangeset
for help on using the changeset viewer.