From ebc6d201b46af569af03b0284aced2d84746d367 Mon Sep 17 00:00:00 2001 From: Syed Zabiuddin <32957211+Zabi09@users.noreply.github.com> Date: Sat, 25 Apr 2020 15:14:02 +0530 Subject: [PATCH] #4383 validation error fixed --- pagebuilder/inc/viewShowFrontData.php | 1 - 1 file changed, 1 deletion(-) diff --git a/pagebuilder/inc/viewShowFrontData.php b/pagebuilder/inc/viewShowFrontData.php index 62a026544..69e463fa4 100644 --- a/pagebuilder/inc/viewShowFrontData.php +++ b/pagebuilder/inc/viewShowFrontData.php @@ -495,7 +495,6 @@ function amppb_validateCss($css){ $css = str_replace(array('.amppb-fluid','.amppb-fixed','.accordion-mod'), array('.ap-fl','.ap-fi','.apac'), $css); $css = preg_replace('/(([a-z -]*:(\s)*;))/', "", $css); $css = preg_replace('/((;[\s\n;]*;))/', ";", $css); - $css = preg_replace('/(?:[^\r\n,{}]+)(?:,(?=[^}]*{,)|\s*{[\s]*})/', "", $css); $css = preg_replace('/\s\n+/', "", $css); return ampforwp_pb_autoCompileLess($css); }