Changeset 7134
- Timestamp:
- 03/03/2008 04:14:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r7130 r7134 1064 1064 function wp_upload_dir( $time = NULL ) { 1065 1065 $siteurl = get_option( 'siteurl' ); 1066 $upload_path = $dir = get_option( 'upload_path' ); 1066 $upload_path = get_option( 'upload_path' ); 1067 if ( trim($upload_path) === '' ) 1068 $upload_path = 'wp-content/uploads'; 1069 $dir = $upload_path; 1067 1070 1068 1071 // $dir is absolute, $path is (maybe) relative to ABSPATH … … 1072 1075 if ( !$url = get_option( 'upload_url_path' ) ) 1073 1076 $url = trailingslashit( $siteurl ) . $path; 1074 1075 if ( $dir == ABSPATH ) // the option was empty1076 $dir = ABSPATH . 'wp-content/uploads';1077 1077 1078 1078 if ( defined('UPLOADS') ) {
Note: See TracChangeset
for help on using the changeset viewer.