Ticket #7305: image_url.patch
| File image_url.patch, 605 bytes (added by , 18 years ago) |
|---|
-
functions.php
1487 1487 1488 1488 // $dir is absolute, $path is (maybe) relative to ABSPATH 1489 1489 $dir = path_join( ABSPATH, $upload_path ); 1490 1490 $path = str_replace( ABSPATH, '', trim( $upload_path ) ); 1491 1491 1492 if ( !$url = get_option( 'upload_url_path' ) ) 1492 $url = WP_CONTENT_URL . '/uploads';1493 1493 $url = trailingslashit( $siteurl ) . $path; 1494 1494 1495 if ( defined('UPLOADS') ) { 1495 1496 $dir = ABSPATH . UPLOADS; 1496 1497 $url = trailingslashit( $siteurl ) . UPLOADS;