Changeset 12851
- Timestamp:
- 01/26/2010 08:02:11 PM (15 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r12850 r12851 2063 2063 } 2064 2064 2065 if ( is_multisite() && defined( 'BLOGUPLOADDIR' ) ) 2066 $dir = untrailingslashit(BLOGUPLOADDIR); 2065 if ( is_multisite() ) { 2066 if ( defined( 'BLOGUPLOADDIR' ) ) 2067 $dir = untrailingslashit(BLOGUPLOADDIR); 2068 $url = str_replace( UPLOADS, 'files', $url ); 2069 } 2067 2070 2068 2071 $bdir = $dir; -
trunk/wp-includes/ms-default-filters.php
r12610 r12851 37 37 add_filter ( 'import_upload_size_limit', 'fix_import_form_size' ); 38 38 add_filter ( 'upload_mimes', 'check_upload_mimes' ); 39 add_filter ( 'upload_dir', 'fix_upload_details' );40 39 41 40 // Mail -
trunk/wp-includes/ms-functions.php
r12850 r12851 1627 1627 1628 1628 /* Misc functions */ 1629 function fix_upload_details( $uploads ) {1630 $uploads['url'] = str_replace( UPLOADS, "files", $uploads['url'] );1631 $uploads['baseurl'] = str_replace( UPLOADS, "files", $uploads['baseurl'] );1632 return $uploads;1633 }1634 1635 1629 function get_dirsize( $directory ) { 1636 1630 $dirsize = get_transient( 'dirsize_cache' );
Note: See TracChangeset
for help on using the changeset viewer.