WordPress.org

Make WordPress Core

Ticket #22702: 22702.2.diff

File 22702.2.diff, 617 bytes (added by nacin, 5 years ago)

Not as effective a patch, but this is just to illustrate what the following lines of code were expecting to have already happened.

  • wp-includes/functions.php

     
    15381538                        //   2) we are not switched, as ms_upload_constants() hardcodes
    15391539                        //      these constants to reflect the original blog ID.
    15401540
     1541                        // Do these look familiar?
     1542                        $dir = ABSPATH . UPLOADS;
     1543                        $url = trailingslashit( $siteurl ) . UPLOADS;
     1544
    15411545                        if ( defined( 'BLOGUPLOADDIR' ) )
    15421546                                $dir = untrailingslashit( BLOGUPLOADDIR );
    15431547                        $url = str_replace( untrailingslashit( UPLOADS ), 'files', $url );