Ticket #6762: 6762.diff
| File 6762.diff, 0.8 kB (added by DD32, 5 months ago) |
|---|
-
wp-includes/functions.php
old new 1095 1095 $url = trailingslashit( $siteurl ) . UPLOADS; 1096 1096 } 1097 1097 1098 $bdir = $dir; 1099 $burl = $url; 1100 1098 1101 $subdir = ''; 1099 1102 if ( get_option( 'uploads_use_yearmonth_folders' ) ) { 1100 1103 // Generate the yearly and monthly dirs … … 1114 1117 return array( 'error' => $message ); 1115 1118 } 1116 1119 1117 $uploads = array( 'path' => $dir, 'url' => $url, 'subdir' => $subdir, ' error' => false );1120 $uploads = array( 'path' => $dir, 'url' => $url, 'subdir' => $subdir, 'basedir' => $bdir, 'baseurl' => $burl, 'error' => false ); 1118 1121 return apply_filters( 'upload_dir', $uploads ); 1119 1122 } 1120 1123
