Changeset 8216

Show
Ignore:
Timestamp:
06/30/08 03:33:05 (5 months ago)
Author:
ryan
Message:

Use WP_CONTENT_URL in wp_upload_dir(). Props sambauers. fixes #7206

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions.php

    r8215 r8216  
    14851485    // $dir is absolute, $path is (maybe) relative to ABSPATH 
    14861486    $dir = path_join( ABSPATH, $upload_path ); 
    1487     $path = str_replace( ABSPATH, '', trim( $upload_path ) ); 
    14881487 
    14891488    if ( !$url = get_option( 'upload_url_path' ) ) 
    1490         $url = trailingslashit( $siteurl ) . $path
     1489        $url = WP_CONTENT_URL . '/uploads'
    14911490 
    14921491    if ( defined('UPLOADS') ) { 
     
    14941493        $url = trailingslashit( $siteurl ) . UPLOADS; 
    14951494    } 
    1496  
     1495     
    14971496    $subdir = ''; 
    14981497    if ( get_option( 'uploads_use_yearmonth_folders' ) ) {