Allow uploads outside of the WP path and custom URLs for the same.

git-svn-id: https://develop.svn.wordpress.org/trunk@6780 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2008-02-11 06:35:24 +00:00
parent 3064a1290c
commit e5087bdeba
3 changed files with 19 additions and 5 deletions

View File

@@ -23,6 +23,13 @@ include('admin-header.php');
<?php _e('Default is <code>wp-content/uploads</code>'); ?>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php _e('Full URL path to files (optional)'); ?>:</th>
<td><input name="upload_url_path" type="text" id="upload_url_path" class="code" value="<?php echo attribute_escape( get_option('upload_url_path')); ?>" size="40" />
</td>
</tr>
<tr>
<td></td>
<td>
@@ -43,7 +50,7 @@ include('admin-header.php');
<p class="submit">
<input type="hidden" name="action" value="update" />
<input type="hidden" name="page_options" value="hack_file,use_linksupdate,uploads_use_yearmonth_folders,upload_path" />
<input type="hidden" name="page_options" value="hack_file,use_linksupdate,uploads_use_yearmonth_folders,upload_path,upload_url_path" />
<input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />
</p>
</form>