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

git-svn-id: https://develop.svn.wordpress.org/trunk@14998 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ron Rennick 2010-05-27 18:06:48 +00:00
parent 9867c8144a
commit 9ac718a3eb
1 changed files with 1 additions and 0 deletions

View File

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