Make WordPress Core

Changeset 8280


Ignore:
Timestamp:
07/07/2008 11:53:54 PM (16 years ago)
Author:
ryan
Message:

Return base dir and url from wp_upload_dir(). Props DD32. fixes #6762

File:
1 edited

Legend:

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

    r8266 r8280  
    14961496        $url = trailingslashit( $siteurl ) . UPLOADS;
    14971497    }
    1498    
     1498
     1499    $bdir = $dir;
     1500    $burl = $url;
     1501
    14991502    $subdir = '';
    15001503    if ( get_option( 'uploads_use_yearmonth_folders' ) ) {
     
    15161519    }
    15171520
    1518     $uploads = array( 'path' => $dir, 'url' => $url, 'subdir' => $subdir, 'error' => false );
     1521    $uploads = array( 'path' => $dir, 'url' => $url, 'subdir' => $subdir, 'basedir' => $bdir, 'baseurl' => $burl, 'error' => false );
    15191522    return apply_filters( 'upload_dir', $uploads );
    15201523}
Note: See TracChangeset for help on using the changeset viewer.