WordPress.org

Make WordPress Core

Ticket #22469: 22469_untrailingslash_UPLOADS.diff

File 22469_untrailingslash_UPLOADS.diff, 433 bytes (added by jbrinley, 17 months ago)

patch to untrailingslash UPLOADS

  • wp-includes/functions.php

     
    15401540 
    15411541                        if ( defined( 'BLOGUPLOADDIR' ) ) 
    15421542                                $dir = untrailingslashit( BLOGUPLOADDIR ); 
    1543                         $url = str_replace( UPLOADS, 'files', $url ); 
     1543                        $url = str_replace( untrailingslashit(UPLOADS), 'files', $url ); 
    15441544                } 
    15451545        } 
    15461546