Skip to content

Commit

Permalink
#2711 Function name updated
Browse files Browse the repository at this point in the history
  • Loading branch information
MARQAS committed Feb 12, 2019
1 parent e15eb16 commit af32520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pagebuilder/inc/viewShowFrontData.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,10 @@ function amppb_validateCss($css){
$css = preg_replace('/((;[\s\n;]*;))/', ";", $css);
$css = preg_replace('/(?:[^\r\n,{}]+)(?:,(?=[^}]*{,)|\s*{[\s]*})/', "", $css);

return autoCompileLess($css);
return ampforwp_pb_autoCompileLess($css);
}

function autoCompileLess($css)
function ampforwp_pb_autoCompileLess($css)
{
$completeCssMinifies = array();
preg_match_all("/@media\b[^{]*({((?:[^{}]+|(?1))*)})/si",$css,$matches,PREG_SET_ORDER);//$MatchingString now hold all strings matching $pattern.
Expand Down

0 comments on commit af32520

Please sign in to comment.