From d581900fe8b4f3f0be51bdb146982ae1a20fafb0 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sun, 29 Dec 2013 14:10:41 -0600 Subject: [PATCH] Remove changing media folder from theme activation --- CHANGELOG.md | 1 + lib/activation.php | 24 ------------------------ 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9080afc..cee51a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/activation.php b/lib/activation.php index d028525..1c71382 100644 --- a/lib/activation.php +++ b/lib/activation.php @@ -85,19 +85,6 @@ function roots_theme_activation_options_render_page() { ?> - - -
- -
- -
- - -
@@ -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;