summaryrefslogtreecommitdiffstats
path: root/wp-includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/functions.php')
-rw-r--r--wp-includes/functions.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/wp-includes/functions.php b/wp-includes/functions.php
index bcec475..332f831 100644
--- a/wp-includes/functions.php
+++ b/wp-includes/functions.php
@@ -1488,6 +1488,9 @@ function wp_upload_dir( $time = NULL ) {
$url = trailingslashit( $siteurl ) . UPLOADS;
}
+ $bdir = $dir;
+ $burl = $url;
+
$subdir = '';
if ( get_option( 'uploads_use_yearmonth_folders' ) ) {
// Generate the yearly and monthly dirs
@@ -1507,7 +1510,7 @@ function wp_upload_dir( $time = NULL ) {
return array( 'error' => $message );
}
- $uploads = array( 'path' => $dir, 'url' => $url, 'subdir' => $subdir, 'error' => false );
+ $uploads = array( 'path' => $dir, 'url' => $url, 'subdir' => $subdir, 'basedir' => $bdir, 'baseurl' => $burl, 'error' => false );
return apply_filters( 'upload_dir', $uploads );
}