-
-
Save ilyaevseev/9599afd3327ddabb3de9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wp-content/themes/enfold/css/dynamic-css.php b/wp-content/themes/enfold/css/dynamic-css.php | |
index 070ea52..cebb373 100644 | |
--- a/wp-content/themes/enfold/css/dynamic-css.php | |
+++ b/wp-content/themes/enfold/css/dynamic-css.php | |
@@ -33,7 +33,7 @@ $output = ""; | |
$body_color = ""; | |
extract($color_set); | |
-extract($main_color); | |
+if ($main_color !== NULL) extract($main_color); | |
extract($styles); | |
unset($background_image); | |
diff --git a/wp-content/themes/enfold/functions-enfold.php b/wp-content/themes/enfold/functions-enfold.php | |
index a7a5a81..ee69d00 100644 | |
--- a/wp-content/themes/enfold/functions-enfold.php | |
+++ b/wp-content/themes/enfold/functions-enfold.php | |
@@ -1319,7 +1319,7 @@ if(!function_exists('avia_generate_grid_dimension')) | |
function avia_generate_grid_dimension($options, $color_set, $styles) | |
{ | |
global $avia_config; | |
- extract($options); | |
+ if ($options !== "") extract($options); | |
if(empty($content_width)) $content_width = 73; | |
if(empty($combined_width)) $combined_width = 100; | |
diff --git a/wp-content/themes/enfold/includes/admin/register-dynamic-styles.php b/wp-content/themes/enfold/includes/admin/register-dynamic-styles.php | |
index 4f457c1..81fbdcc 100644 | |
--- a/wp-content/themes/enfold/includes/admin/register-dynamic-styles.php | |
+++ b/wp-content/themes/enfold/includes/admin/register-dynamic-styles.php | |
@@ -8,6 +8,7 @@ function avia_prepare_dynamic_styles($options = false) | |
$color_set = $styles = array(); | |
$post_id = avia_get_the_ID(); | |
$options = apply_filters('avia_pre_prepare_colors', $options); | |
+ if ($options === "") $options = array(); | |
//boxed or stretched layout | |
$avia_config['box_class'] = empty($options['color-body_style']) ? "stretched" : $options['color-body_style']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment