Make WordPress Core

Changeset 8216


Ignore:
Timestamp:
06/30/2008 03:33:05 AM (16 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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' ) ) {
Note: See TracChangeset for help on using the changeset viewer.