add fileupload_url option to main site on network install, see #13483

git-svn-id: http://svn.automattic.com/wordpress/trunk@14998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-05-27 18:06:48 +00:00
parent 859beb4d84
commit a6e1307576

View File

@ -737,6 +737,7 @@ Thanks!
if ( !$upload_path = get_option( 'upload_path' ) ) { if ( !$upload_path = get_option( 'upload_path' ) ) {
$upload_path = substr( WP_CONTENT_DIR, strlen( ABSPATH ) ) . '/uploads'; $upload_path = substr( WP_CONTENT_DIR, strlen( ABSPATH ) ) . '/uploads';
update_option( 'upload_path', $upload_path ); update_option( 'upload_path', $upload_path );
update_option( 'fileupload_url', get_option( 'siteurl' ) . '/' . $upload_path );
} }
} }