Make WordPress Core


Ignore:
Timestamp:
12/15/2009 05:53:51 PM (14 years ago)
Author:
ryan
Message:

Fix upload dir defaults. Props Denis-de-Bernardy. fixes #11276

File:
1 edited

Legend:

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

    r11781 r12405  
    3131<tr valign="top">
    3232<th scope="row"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></th>
    33 <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" />
     33<td><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(get_option('upload_path')); ?>" class="regular-text code" />
    3434<span class="description"><?php _e('Default is <code>wp-content/uploads</code>'); ?></span>
    3535</td>
Note: See TracChangeset for help on using the changeset viewer.