WordPress.org

Make WordPress Core

Ticket #22702: 22702.diff

File 22702.diff, 475 bytes (added by nacin, 5 years ago)
  • wp-includes/functions.php

     
    15401540
    15411541                        if ( defined( 'BLOGUPLOADDIR' ) )
    15421542                                $dir = untrailingslashit( BLOGUPLOADDIR );
    1543                         $url = str_replace( untrailingslashit( UPLOADS ), 'files', $url );
     1543                        else
     1544                                $dir = ABSPATH . UPLOADS;
     1545                        $url = trailingslashit( $siteurl ) . 'files';
    15441546                }
    15451547        }
    15461548