]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/options-misc.php
Wordpress 2.9
[autoinstalls/wordpress.git] / wp-admin / options-misc.php
index e63528103c4ef9369e9bb37f8c0b67b567d2c8c8..73575a4e88849f6125e3262270d7954188e1663f 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( ! current_user_can('manage_options') )
+       wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
+
 $title = __('Miscellaneous Settings');
 $parent_file = 'options-general.php';
 
@@ -27,7 +30,7 @@ include('admin-header.php');
 <table class="form-table">
 <tr valign="top">
 <th scope="row"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></th>
-<td><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(str_replace(ABSPATH, '', get_option('upload_path'))); ?>" class="regular-text code" />
+<td><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(get_option('upload_path')); ?>" class="regular-text code" />
 <span class="description"><?php _e('Default is <code>wp-content/uploads</code>'); ?></span>
 </td>
 </tr>
@@ -60,7 +63,6 @@ include('admin-header.php');
 </label>
 </th>
 </tr>
-<tr>
 
 </table>