WordPress.org

Make WordPress Core

Ticket #19873: functions.diff.php

File functions.diff.php, 471 bytes (added by atow, 4 years ago)

Patch

Line 
1Index: functions.php
2===================================================================
3--- functions.php       (revision 19735)
4+++ functions.php       (working copy)
5@@ -1505,7 +1505,7 @@
6  */
7 function wp_upload_dir( $time = null ) {
8        global $switched;
9-       $siteurl = get_option( 'siteurl' );
10+       $siteurl = site_url();
11        $upload_path = get_option( 'upload_path' );
12        $upload_path = trim($upload_path);
13        $main_override = is_multisite() && defined( 'MULTISITE' ) && is_main_site();