Changeset 23002
- Timestamp:
- 12/03/2012 10:24:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r22736 r23002 1538 1538 // 2) we are not switched, as ms_upload_constants() hardcodes 1539 1539 // these constants to reflect the original blog ID. 1540 // 1541 // Rather than UPLOADS, we actually use BLOGUPLOADDIR if it is set, as it is absolute. 1542 // (And it will be set, see ms_upload_constants().) Otherwise, UPLOADS can be used, as 1543 // as it is relative to ABSPATH. For the final piece: when UPLOADS is used with ms-files 1544 // rewriting in multisite, the resulting URL is /files. (#WP22702 for background.) 1540 1545 1541 1546 if ( defined( 'BLOGUPLOADDIR' ) ) 1542 1547 $dir = untrailingslashit( BLOGUPLOADDIR ); 1543 $url = str_replace( untrailingslashit( UPLOADS ), 'files', $url ); 1548 else 1549 $dir = ABSPATH . UPLOADS; 1550 $url = trailingslashit( $siteurl ) . 'files'; 1544 1551 } 1545 1552 }
Note: See TracChangeset
for help on using the changeset viewer.