[Plugin: Free CDN] Inline background images check ignored
-
Replace this:
// background images $regex = '/style\s*=\s*(?:".*?\s*\(\s*\'(.*?)\'\s*\).*?")/si'; $html = $this->document->save(); preg_match_all($regex, $html, $matches); foreach ($matches[1] as $url) { $html = str_replace($matches[1], $this->rewrite_url($matches[1]), $html); }
with this:
$html = $this->document->save(); // background images if ($this->options['apply']['bgr']) { $regex = '/style\s*=\s*(?:".*?\s*\(\s*\'(.*?)\'\s*\).*?")/si'; preg_match_all($regex, $html, $matches); foreach ($matches[1] as $url) { $html = str_replace($matches[1], $this->rewrite_url($matches[1]), $html); } }
- The topic ‘[Plugin: Free CDN] Inline background images check ignored’ is closed to new replies.