Make WordPress Core

Ticket #48316: absolute-uploads.diff

File absolute-uploads.diff, 541 bytes (added by xpoon, 5 years ago)

Enable usage of absolute paths in the UPLOADS constant.

  • src/wp-includes/functions.php

     
    19461946         * We also sometimes obey UPLOADS when rewriting is enabled -- see the next block.
    19471947         */
    19481948        if ( defined( 'UPLOADS' ) && ! ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) ) {
    1949                 $dir = ABSPATH . UPLOADS;
     1949                $dir = path_join( ABSPATH , UPLOADS );
    19501950                $url = trailingslashit( $siteurl ) . UPLOADS;
    19511951        }