Fast Velocity Minify - Version 2.8.7

Version Description

[2020.04.30] = * fixed the sourceMappingURL removal regex introduced on 2.8.3 for js files and css files

Download this release

Release Info

Developer Alignak
Plugin Icon 128x128 Fast Velocity Minify
Version 2.8.7
Comparing to
See all releases

Code changes from version 2.8.6 to 2.8.7

Files changed (3) hide show
  1. fvm.php +1 -1
  2. inc/functions.php +4 -4
  3. readme.txt +4 -1
fvm.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://fastvelocity.com
5
  Description: Improve your speed score on GTmetrix, Pingdom Tools and Google PageSpeed Insights by merging and minifying CSS and JavaScript files into groups, compressing HTML and other speed optimizations.
6
  Author: Raul Peixoto
7
  Author URI: http://fastvelocity.com
8
- Version: 2.8.6
9
  License: GPL2
10
 
11
  ------------------------------------------------------------------------
5
  Description: Improve your speed score on GTmetrix, Pingdom Tools and Google PageSpeed Insights by merging and minifying CSS and JavaScript files into groups, compressing HTML and other speed optimizations.
6
  Author: Raul Peixoto
7
  Author URI: http://fastvelocity.com
8
+ Version: 2.8.7
9
  License: GPL2
10
 
11
  ------------------------------------------------------------------------
inc/functions.php CHANGED
@@ -325,8 +325,8 @@ if(!$disable_js_minification) {
325
  $js = fvm_compat_urls($js);
326
  }
327
 
328
- # remove sourcemaps
329
- $js = preg_replace('~//[#@]\s(source(?:Mapping)?URL)=\s*(\S+)~us', '', $js);
330
 
331
  # needed when merging js files
332
  $js = trim($js);
@@ -394,8 +394,8 @@ $css = str_ireplace('@charset "UTF-8";', '', $css);
394
  $ctime = get_option('fvm-last-cache-update', '0'); # last update or zero
395
  $css = preg_replace('/(.eot|.woff2|.woff|.ttf)+[?+](.+?)(\)|\'|\")/ui', "$1"."#".$ctime."$3", $css); # fonts cache buster
396
 
397
- # remove sourcemaps
398
- $css = preg_replace('~//[#@]\s(source(?:Mapping)?URL)=\s*(\S+)~us', '', $css);
399
 
400
  # minify CSS
401
  if(!$disable_css_minification) {
325
  $js = fvm_compat_urls($js);
326
  }
327
 
328
+ # remove sourceMappingURL
329
+ $js = preg_replace('/(\/\/\s*[#]\s*sourceMappingURL\s*[=]\s*)([a-zA-Z0-9-_\.\/]+)(\.map)/ui', '', $js);
330
 
331
  # needed when merging js files
332
  $js = trim($js);
394
  $ctime = get_option('fvm-last-cache-update', '0'); # last update or zero
395
  $css = preg_replace('/(.eot|.woff2|.woff|.ttf)+[?+](.+?)(\)|\'|\")/ui', "$1"."#".$ctime."$3", $css); # fonts cache buster
396
 
397
+ # remove sourceMappingURL
398
+ $css = preg_replace('/(\/\/\s*[#]\s*sourceMappingURL\s*[=]\s*)([a-zA-Z0-9-_\.\/]+)(\.map)/ui', '', $css);
399
 
400
  # minify CSS
401
  if(!$disable_css_minification) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Alignak
3
  Tags: PHP Minify, Lighthouse, GTmetrix, Pingdom, Pagespeed, CSS Merging, JS Merging, CSS Minification, JS Minification, Speed Optimization, HTML Minification, Performance, Optimization, FVM
4
  Requires at least: 4.7
5
  Requires PHP: 5.6
6
- Stable tag: 2.8.6
7
  Tested up to: 5.4
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -198,6 +198,9 @@ Please backup your site before updating. Version 3.0 will have a major code rewr
198
 
199
  == Changelog ==
200
 
 
 
 
201
  = 2.8.6 [2020.04.30] =
202
  * fixed an error notice on php
203
 
3
  Tags: PHP Minify, Lighthouse, GTmetrix, Pingdom, Pagespeed, CSS Merging, JS Merging, CSS Minification, JS Minification, Speed Optimization, HTML Minification, Performance, Optimization, FVM
4
  Requires at least: 4.7
5
  Requires PHP: 5.6
6
+ Stable tag: 2.8.7
7
  Tested up to: 5.4
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
198
 
199
  == Changelog ==
200
 
201
+ = 2.8.7 [2020.04.30] =
202
+ * fixed the sourceMappingURL removal regex introduced on 2.8.3 for js files and css files
203
+
204
  = 2.8.6 [2020.04.30] =
205
  * fixed an error notice on php
206