Make WordPress Core


Ignore:
Timestamp:
03/01/2010 12:13:15 PM (15 years ago)
Author:
dd32
Message:

Move Upload folder settings to Options -> Media. Props nacin. Fixes #11687

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-media.php

    r12411 r13529  
    9191</table>
    9292
     93<h3><?php _e('Uploading Files'); ?></h3>
     94<table class="form-table">
     95<tr valign="top">
     96<th scope="row"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></th>
     97<td><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(get_option('upload_path')); ?>" class="regular-text code" />
     98<span class="description"><?php _e('Default is <code>wp-content/uploads</code>'); ?></span>
     99</td>
     100</tr>
     101
     102<tr valign="top">
     103<th scope="row"><label for="upload_url_path"><?php _e('Full URL path to files'); ?></label></th>
     104<td><input name="upload_url_path" type="text" id="upload_url_path" value="<?php echo esc_attr( get_option('upload_url_path')); ?>" class="regular-text code" />
     105<span class="description"><?php _e('Configuring this is optional. By default, it should be blank.'); ?></span>
     106</td>
     107</tr>
     108
     109<tr>
     110<th scope="row" colspan="2" class="th-full">
     111<label for="uploads_use_yearmonth_folders">
     112<input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1"<?php checked('1', get_option('uploads_use_yearmonth_folders')); ?> />
     113<?php _e('Organize my uploads into month- and year-based folders'); ?>
     114</label>
     115</th>
     116</tr>
     117
     118<?php do_settings_fields('media', 'uploads'); ?>
     119</table>
     120
    93121<?php do_settings_sections('media'); ?>
    94122
Note: See TracChangeset for help on using the changeset viewer.