WordPress.org

Make WordPress Core

Ticket #19873: 19873.diff

File 19873.diff, 507 bytes (added by atow, 4 years ago)
  • wp-includes/functions.php

     
    15051505 */ 
    15061506function wp_upload_dir( $time = null ) { 
    15071507        global $switched; 
    1508         $siteurl = get_option( 'siteurl' ); 
     1508        $siteurl = site_url(); 
    15091509        $upload_path = get_option( 'upload_path' ); 
    15101510        $upload_path = trim($upload_path); 
    15111511        $main_override = is_multisite() && defined( 'MULTISITE' ) && is_main_site();