From 82e2b03d4b35b22298fd8f7e4d47f2a2b664e792 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sun, 23 Oct 2011 16:19:18 -0600 Subject: [PATCH] Fixing bug with the root relative and clean menu options on first save On a clean install when you saved the theme options for the first time, the validation had a bug where the root relative URLs and clean menu output values would both be set to false even if they were true. --- inc/roots-options.php | 76 ++++++++++++++++++++++++++----------------- 1 file changed, 47 insertions(+), 29 deletions(-) diff --git a/inc/roots-options.php b/inc/roots-options.php index cd3286a..76724ee 100644 --- a/inc/roots-options.php +++ b/inc/roots-options.php @@ -3,7 +3,7 @@ function roots_admin_enqueue_scripts($hook_suffix) { if ($hook_suffix !== 'appearance_page_theme_options') return; - + wp_enqueue_style('roots-theme-options', get_template_directory_uri() . '/inc/css/theme-options.css'); wp_enqueue_script('roots-theme-options', get_template_directory_uri() . '/inc/js/theme-options.js'); } @@ -127,7 +127,7 @@ $roots_css_frameworks = array( ) ) ); - + // Write the above array of CSS frameworks into a script tag function roots_add_frameworks_object_script() { global $roots_css_frameworks; @@ -184,7 +184,7 @@ function roots_theme_options_render_page() {
@@ -200,7 +200,7 @@ function roots_theme_options_render_page() { - +
@@ -210,7 +210,7 @@ function roots_theme_options_render_page() {
- +
@@ -220,46 +220,46 @@ function roots_theme_options_render_page() {
- +
+ + +
- +
+ + +
- +
+ + +
- - + + - - + +