Changeset 6780 for trunk/wp-includes/functions.php
- Timestamp:
- 02/11/2008 06:35:24 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r6777 r6780 1027 1027 function wp_upload_dir( $time = NULL ) { 1028 1028 $siteurl = get_option( 'siteurl' ); 1029 //prepend ABSPATH to $dir and $siteurl to $url if they're not already there 1030 $path = str_replace( ABSPATH, '', trim( get_option( 'upload_path' ) ) ); 1031 $dir = ABSPATH . $path; 1032 $url = trailingslashit( $siteurl ) . $path; 1029 $upload_path = $dir = get_option( 'upload_path' ); 1030 1031 if ( $upload_path != realpath( $upload_path ) ) { // not an absolute path 1032 //prepend ABSPATH to $dir and $siteurl to $url if they're not already there 1033 $path = str_replace( ABSPATH, '', trim( $upload_path ) ); 1034 $dir = ABSPATH . $path; 1035 } 1036 1037 if ( !$url = get_option( 'upload_url_path' ) ) 1038 $url = trailingslashit( $siteurl ) . $path; 1033 1039 1034 1040 if ( $dir == ABSPATH ) // the option was empty
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)