Version Description
[2020.04.30] = * fixed an error notice on php
Download this release
Release Info
Developer | Alignak |
Plugin | Fast Velocity Minify |
Version | 2.8.6 |
Comparing to | |
See all releases |
Code changes from version 2.8.5 to 2.8.6
- fvm.php +8 -5
- inc/functions-upgrade.php +4 -5
- 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.
|
9 |
License: GPL2
|
10 |
|
11 |
------------------------------------------------------------------------
|
@@ -1349,10 +1349,11 @@ for($i=0,$l=count($header);$i<$l;$i++) {
|
|
1349 |
# Add child data before anything else
|
1350 |
if (!empty($wp_scripts->registered[$handle]->extra)){
|
1351 |
if (!empty($wp_scripts->registered[$handle]->extra['data'])){
|
1352 |
-
|
|
|
|
|
1353 |
}
|
1354 |
-
}
|
1355 |
-
|
1356 |
|
1357 |
# Add extra data from wp_add_inline_script before
|
1358 |
if (!empty($wp_scripts->registered[$handle]->extra)){
|
@@ -1566,7 +1567,9 @@ for($i=0,$l=count($footer);$i<$l;$i++) {
|
|
1566 |
# Add child data before anything else
|
1567 |
if (!empty($wp_scripts->registered[$handle]->extra)){
|
1568 |
if (!empty($wp_scripts->registered[$handle]->extra['data'])){
|
1569 |
-
|
|
|
|
|
1570 |
}
|
1571 |
}
|
1572 |
|
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 |
------------------------------------------------------------------------
|
1349 |
# Add child data before anything else
|
1350 |
if (!empty($wp_scripts->registered[$handle]->extra)){
|
1351 |
if (!empty($wp_scripts->registered[$handle]->extra['data'])){
|
1352 |
+
if(is_string($wp_scripts->registered[$handle]->extra['data'])) {
|
1353 |
+
$code.= PHP_EOL . fastvelocity_try_catch_wrap($wp_scripts->registered[$handle]->extra['data']);
|
1354 |
+
}
|
1355 |
}
|
1356 |
+
}
|
|
|
1357 |
|
1358 |
# Add extra data from wp_add_inline_script before
|
1359 |
if (!empty($wp_scripts->registered[$handle]->extra)){
|
1567 |
# Add child data before anything else
|
1568 |
if (!empty($wp_scripts->registered[$handle]->extra)){
|
1569 |
if (!empty($wp_scripts->registered[$handle]->extra['data'])){
|
1570 |
+
if(is_string($wp_scripts->registered[$handle]->extra['data'])) {
|
1571 |
+
$code.= PHP_EOL . fastvelocity_try_catch_wrap($wp_scripts->registered[$handle]->extra['data']);
|
1572 |
+
}
|
1573 |
}
|
1574 |
}
|
1575 |
|
inc/functions-upgrade.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
|
3 |
|
4 |
# run after updating
|
5 |
-
add_action( '
|
6 |
-
function fastvelocity_plugin_upgrade_completed(
|
7 |
|
8 |
global $fastvelocity_plugin_version;
|
9 |
|
@@ -16,8 +16,8 @@ function fastvelocity_plugin_upgrade_completed($upgrader_object, $options) {
|
|
16 |
update_option( "fastvelocity_plugin_version", $fastvelocity_plugin_version, 'no');
|
17 |
}
|
18 |
|
19 |
-
# run for any update lower than 2.8.
|
20 |
-
if (version_compare($ver, '2.8.
|
21 |
|
22 |
# default ignore list update
|
23 |
$exc = array('/themes/Avada/assets/js/main.min.js', '/plugins/woocommerce-product-search/js/product-search.js', '/plugins/revslider/public/assets/js/jquery.themepunch.tools.min.js', '/js/TweenMax.min.js', '/themes/jupiter/assets/js/min/full-scripts', '/plugins/LayerSlider/static/layerslider/js/greensock.js', '/themes/kalium/assets/js/main.min.js', '/js/mediaelement/', '/plugins/elementor/assets/js/common.min.js', '/plugins/elementor/assets/js/frontend.min.js', '/plugins/elementor-pro/assets/js/frontend.min.js', '/themes/kalium/assets/js/main.min.js', '/wp-includes/js/mediaelement/wp-mediaelement.min.js');
|
@@ -27,7 +27,6 @@ function fastvelocity_plugin_upgrade_completed($upgrader_object, $options) {
|
|
27 |
}
|
28 |
|
29 |
|
30 |
-
|
31 |
# upgrade notifications
|
32 |
function fastvelocity_plugin_update_message($currentPluginMetadata, $newPluginMetadata) {
|
33 |
if (isset($newPluginMetadata->upgrade_notice) && strlen(trim($newPluginMetadata->upgrade_notice)) > 0){
|
2 |
|
3 |
|
4 |
# run after updating
|
5 |
+
add_action( 'plugins_loaded', 'fastvelocity_plugin_upgrade_completed');
|
6 |
+
function fastvelocity_plugin_upgrade_completed() {
|
7 |
|
8 |
global $fastvelocity_plugin_version;
|
9 |
|
16 |
update_option( "fastvelocity_plugin_version", $fastvelocity_plugin_version, 'no');
|
17 |
}
|
18 |
|
19 |
+
# run for any update lower than 2.8.6
|
20 |
+
if (version_compare($ver, '2.8.6', '<')) {
|
21 |
|
22 |
# default ignore list update
|
23 |
$exc = array('/themes/Avada/assets/js/main.min.js', '/plugins/woocommerce-product-search/js/product-search.js', '/plugins/revslider/public/assets/js/jquery.themepunch.tools.min.js', '/js/TweenMax.min.js', '/themes/jupiter/assets/js/min/full-scripts', '/plugins/LayerSlider/static/layerslider/js/greensock.js', '/themes/kalium/assets/js/main.min.js', '/js/mediaelement/', '/plugins/elementor/assets/js/common.min.js', '/plugins/elementor/assets/js/frontend.min.js', '/plugins/elementor-pro/assets/js/frontend.min.js', '/themes/kalium/assets/js/main.min.js', '/wp-includes/js/mediaelement/wp-mediaelement.min.js');
|
27 |
}
|
28 |
|
29 |
|
|
|
30 |
# upgrade notifications
|
31 |
function fastvelocity_plugin_update_message($currentPluginMetadata, $newPluginMetadata) {
|
32 |
if (isset($newPluginMetadata->upgrade_notice) && strlen(trim($newPluginMetadata->upgrade_notice)) > 0){
|
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.
|
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.5 [2020.04.30] =
|
202 |
* bug fixes and some more minification default exclusions
|
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.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 |
|
199 |
== Changelog ==
|
200 |
|
201 |
+
= 2.8.6 [2020.04.30] =
|
202 |
+
* fixed an error notice on php
|
203 |
+
|
204 |
= 2.8.5 [2020.04.30] =
|
205 |
* bug fixes and some more minification default exclusions
|
206 |
|