Remove changing media folder from theme activation

This commit is contained in:
Ben Word
2013-12-29 14:10:41 -06:00
parent c79e67ddcf
commit d581900fe8
2 changed files with 1 additions and 24 deletions

View File

@@ -85,19 +85,6 @@ function roots_theme_activation_options_render_page() { ?>
</td>
</tr>
<tr valign="top"><th scope="row"><?php _e('Change uploads folder?', 'roots'); ?></th>
<td>
<fieldset><legend class="screen-reader-text"><span><?php _e('Update uploads folder?', 'roots'); ?></span></legend>
<select name="roots_theme_activation_options[change_uploads_folder]" id="change_uploads_folder">
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
<option value="false"><?php echo _e('No', 'roots'); ?></option>
</select>
<br>
<small class="description"><?php printf(__('Change uploads folder to /media/ instead of /wp-content/uploads/', 'roots')); ?></small>
</fieldset>
</td>
</tr>
<tr valign="top"><th scope="row"><?php _e('Create navigation menu?', 'roots'); ?></th>
<td>
<fieldset><legend class="screen-reader-text"><span><?php _e('Create navigation menu?', 'roots'); ?></span></legend>
@@ -186,17 +173,6 @@ function roots_theme_activation_action() {
}
}
if ($roots_theme_activation_options['change_uploads_folder'] === 'true') {
$roots_theme_activation_options['change_uploads_folder'] = false;
update_option('uploads_use_yearmonth_folders', 0);
if (!is_multisite()) {
update_option('upload_path', 'media');
} else {
update_option('upload_path', '');
}
}
if ($roots_theme_activation_options['create_navigation_menus'] === 'true') {
$roots_theme_activation_options['create_navigation_menus'] = false;