WordPress.org

Make WordPress Core

Ticket #25449: add-https-wp_upload_dir2.patch

File add-https-wp_upload_dir2.patch, 378 bytes (added by ryanhellyer, 6 years ago)

New patch for making wp_upload_dir() work with https.

  • wp-includes/functions.php

     
    16221622        }
    16231623
    16241624        $basedir = $dir;
    1625         $baseurl = $url;
     1625        $baseurl = $url = set_url_scheme( $url );
    16261626
    16271627        $subdir = '';
    16281628        if ( get_option( 'uploads_use_yearmonth_folders' ) ) {