Ticket #22469: uploads-wpcom.diff

File uploads-wpcom.diff, 407 bytes (added by nacin, 6 months ago)
Line 
1Index: wp-includes/functions.php
2===================================================================
3--- wp-includes/functions.php   (revision 22594)
4+++ wp-includes/functions.php   (working copy)
5@@ -1544,6 +1544,10 @@
6                }
7        }
8
9+       $dir = untrailingslashit( BLOGUPLOADDIR );
10+       $url = trailingslashit( $siteurl ) . UPLOADS;
11+       $url = str_replace( UPLOADS, 'files', $url );
12+
13        $basedir = $dir;
14        $baseurl = $url;