Skip to content

Commit

Permalink
Remove changing media folder from theme activation
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs committed Dec 29, 2013
1 parent c79e67d commit d581900
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### HEAD
* Remove changing media folder from theme activation (use [Bedrock](https://github.com/roots/bedrock) for clean URLs out of the box)
* Update to Bootstrap 3.0.3
* Switch `div.main` to `main` element now that Modernizr uses the latest HTML5 Shiv
* Update to Modernizr 2.7.0
Expand Down
24 changes: 0 additions & 24 deletions lib/activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit d581900

Please sign in to comment.