Make WordPress Core


Ignore:
Timestamp:
01/09/2006 10:24:57 PM (21 years ago)
Author:
ryan
Message:

Add upload folder options. Props David House. fixes #2206

File:
1 edited

Legend:

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

    r3209 r3413  
    1111<div class="wrap">
    1212<h2><?php _e('Miscellaneous Options') ?></h2>
    13 <form method="post" action="options.php">
     13<form method="post" action="options.php">
     14
     15<fieldset class="options">
     16<legend><?php _e('Uploading'); ?></legend>
     17<table width="100%" cellspacing="2" cellpadding="5" class="editform">
     18        <tr valign="top"><th scope="row" width="33%"><?php _e('Organize uploads:'); ?></th>
     19        <td>
     20                <label for="uploads_use_yearmonth_folders">
     21                        <input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1" <?php checked('1', get_settings('uploads_use_yearmonth_folders')); ?> />
     22                        <?php _e('Organize my uploads into month- and year-based folders'); ?>
     23                </label>
     24        </td></tr>
     25        <tr valign="top"><th scope="row"><?php _e('Store uploads in this folder (default is wp-content/uploads):'); ?></th>
     26        <td>
     27                <input name="fileupload_realpath" type="text" id="fileupload_realpath" value="<?php echo str_replace(ABSPATH, '', get_settings('fileupload_realpath')); ?>" size="40" />
     28        </td></tr>
     29</table>
     30</fieldset>
     31
    1432<p><input name="use_linksupdate" type="checkbox" id="use_linksupdate" value="1" <?php checked('1', get_settings('use_linksupdate')); ?> />
    1533<label for="use_linksupdate"><?php _e('Track Links&#8217; Update Times') ?></label></p>
    … …  
    1735<label><input type="checkbox" name="hack_file" value="1" <?php checked('1', get_settings('hack_file')); ?> /> <?php _e('Use legacy <code>my-hacks.php</code> file support') ?></label>
    1836</p>
     37
    1938<p class="submit">
    2039<input type="hidden" name="action" value="update" />
    21 <input type="hidden" name="page_options" value="hack_file,use_linksupdate" />
     40<input type="hidden" name="page_options" value="hack_file,use_linksupdate,uploads_use_yearmonth_folders,fileupload_realpath" />
    2241        <input type="submit" name="Submit" value="<?php _e('Update Options') ?> &raquo;" />
    2342</p>
Note: See TracChangeset for help on using the changeset viewer.