Version Description
2020/Nov/5 =
FIX: Adds polyfill for WP 4.5 wp_add_inline_script
FIX: Removes some non PHP 5.3 code from 3rd party lib
Download this release
Release Info
| Developer | metaslider |
| Plugin | |
| Version | 3.18.9 |
| Comparing to | |
| See all releases | |
Code changes from version 3.18.8 to 3.18.9
- admin/Notices.php +29 -1
- admin/support/Analytics.php +29 -1
- lib/appsero/src/Insights.php +3 -3
- ml-slider.php +2 -2
- readme.txt +7 -2
admin/Notices.php
CHANGED
|
@@ -70,7 +70,7 @@ class MetaSlider_Notices extends Updraft_Notices_1_0
|
|
| 70 |
wp_register_script('metaslider-notices-extra-js', '');
|
| 71 |
wp_enqueue_script('metaslider-notices-extra-js');
|
| 72 |
$nonce = wp_create_nonce('metaslider_handle_notices_nonce');
|
| 73 |
-
wp_add_inline_script(
|
| 74 |
'metaslider-notices-extra-js',
|
| 75 |
"window.metaslider_notices_handle_notices_nonce = '{$nonce}'"
|
| 76 |
);
|
|
@@ -628,4 +628,32 @@ class MetaSlider_Notices extends Updraft_Notices_1_0
|
|
| 628 |
(defined('METASLIDER_FORCE_LITE_NOTICES') && METASLIDER_FORCE_LITE_NOTICES) ||
|
| 629 |
(defined('METASLIDER_DISABLE_SEASONAL_NOTICES') && METASLIDER_DISABLE_SEASONAL_NOTICES);
|
| 630 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 631 |
}
|
| 70 |
wp_register_script('metaslider-notices-extra-js', '');
|
| 71 |
wp_enqueue_script('metaslider-notices-extra-js');
|
| 72 |
$nonce = wp_create_nonce('metaslider_handle_notices_nonce');
|
| 73 |
+
$this->wp_add_inline_script(
|
| 74 |
'metaslider-notices-extra-js',
|
| 75 |
"window.metaslider_notices_handle_notices_nonce = '{$nonce}'"
|
| 76 |
);
|
| 628 |
(defined('METASLIDER_FORCE_LITE_NOTICES') && METASLIDER_FORCE_LITE_NOTICES) ||
|
| 629 |
(defined('METASLIDER_DISABLE_SEASONAL_NOTICES') && METASLIDER_DISABLE_SEASONAL_NOTICES);
|
| 630 |
}
|
| 631 |
+
|
| 632 |
+
/**
|
| 633 |
+
* Polyfill to handle the wp_add_inline_script() function.
|
| 634 |
+
*
|
| 635 |
+
* @param string $handle The script identifier
|
| 636 |
+
* @param string $data The script to add, without <script> tags
|
| 637 |
+
* @param string $position Whether to output before or after
|
| 638 |
+
*
|
| 639 |
+
* @return object|bool
|
| 640 |
+
*/
|
| 641 |
+
public function wp_add_inline_script($handle, $data, $position = 'after')
|
| 642 |
+
{
|
| 643 |
+
if (function_exists('wp_add_inline_script')) {
|
| 644 |
+
return wp_add_inline_script($handle, $data, $position);
|
| 645 |
+
}
|
| 646 |
+
global $wp_scripts;
|
| 647 |
+
if (!$data) {
|
| 648 |
+
return false;
|
| 649 |
+
}
|
| 650 |
+
|
| 651 |
+
// First fetch any existing scripts
|
| 652 |
+
$script = $wp_scripts->get_data($handle, 'data');
|
| 653 |
+
|
| 654 |
+
// Append to the end
|
| 655 |
+
$script .= $data;
|
| 656 |
+
|
| 657 |
+
return $wp_scripts->add_data($handle, 'data', $script);
|
| 658 |
+
}
|
| 659 |
}
|
admin/support/Analytics.php
CHANGED
|
@@ -51,7 +51,7 @@ class MetaSlider_Analytics
|
|
| 51 |
wp_register_script('metaslider-optin-extra-js', '');
|
| 52 |
wp_enqueue_script('metaslider-optin-extra-js');
|
| 53 |
$nonce = wp_create_nonce('metaslider_optin_notice_nonce');
|
| 54 |
-
wp_add_inline_script(
|
| 55 |
'metaslider-optin-extra-js',
|
| 56 |
"window.metaslider_optin_notice_nonce = '{$nonce}'"
|
| 57 |
);
|
|
@@ -303,4 +303,32 @@ class MetaSlider_Analytics
|
|
| 303 |
|
| 304 |
self::updateOptinStatusTo('false');
|
| 305 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 306 |
}
|
| 51 |
wp_register_script('metaslider-optin-extra-js', '');
|
| 52 |
wp_enqueue_script('metaslider-optin-extra-js');
|
| 53 |
$nonce = wp_create_nonce('metaslider_optin_notice_nonce');
|
| 54 |
+
$this->wp_add_inline_script(
|
| 55 |
'metaslider-optin-extra-js',
|
| 56 |
"window.metaslider_optin_notice_nonce = '{$nonce}'"
|
| 57 |
);
|
| 303 |
|
| 304 |
self::updateOptinStatusTo('false');
|
| 305 |
}
|
| 306 |
+
|
| 307 |
+
/**
|
| 308 |
+
* Polyfill to handle the wp_add_inline_script() function.
|
| 309 |
+
*
|
| 310 |
+
* @param string $handle The script identifier
|
| 311 |
+
* @param string $data The script to add, without <script> tags
|
| 312 |
+
* @param string $position Whether to output before or after
|
| 313 |
+
*
|
| 314 |
+
* @return object|bool
|
| 315 |
+
*/
|
| 316 |
+
public function wp_add_inline_script($handle, $data, $position = 'after')
|
| 317 |
+
{
|
| 318 |
+
if (function_exists('wp_add_inline_script')) {
|
| 319 |
+
return wp_add_inline_script($handle, $data, $position);
|
| 320 |
+
}
|
| 321 |
+
global $wp_scripts;
|
| 322 |
+
if (!$data) {
|
| 323 |
+
return false;
|
| 324 |
+
}
|
| 325 |
+
|
| 326 |
+
// First fetch any existing scripts
|
| 327 |
+
$script = $wp_scripts->get_data($handle, 'data');
|
| 328 |
+
|
| 329 |
+
// Append to the end
|
| 330 |
+
$script .= $data;
|
| 331 |
+
|
| 332 |
+
return $wp_scripts->add_data($handle, 'data', $script);
|
| 333 |
+
}
|
| 334 |
}
|
lib/appsero/src/Insights.php
CHANGED
|
@@ -776,7 +776,7 @@ class Insights
|
|
| 776 |
|
| 777 |
$this->deactivation_modal_styles();
|
| 778 |
$reasons = $this->get_uninstall_reasons();
|
| 779 |
-
$custom_reasons = apply_filters('appsero_custom_deactivation_reasons',
|
| 780 |
|
| 781 |
<div class="wd-dr-modal" id="<?php echo $this->client->slug; ?>-wd-dr-modal">
|
| 782 |
<div class="wd-dr-modal-wrap">
|
|
@@ -974,10 +974,10 @@ class Insights
|
|
| 974 |
{
|
| 975 |
$skipped = get_option($this->client->slug . '_tracking_skipped');
|
| 976 |
|
| 977 |
-
$data =
|
| 978 |
'hash' => $this->client->hash,
|
| 979 |
'previously_skipped' => false,
|
| 980 |
-
|
| 981 |
|
| 982 |
if ($skipped === 'yes') {
|
| 983 |
$data['previously_skipped'] = true;
|
| 776 |
|
| 777 |
$this->deactivation_modal_styles();
|
| 778 |
$reasons = $this->get_uninstall_reasons();
|
| 779 |
+
$custom_reasons = apply_filters('appsero_custom_deactivation_reasons', array()); ?>
|
| 780 |
|
| 781 |
<div class="wd-dr-modal" id="<?php echo $this->client->slug; ?>-wd-dr-modal">
|
| 782 |
<div class="wd-dr-modal-wrap">
|
| 974 |
{
|
| 975 |
$skipped = get_option($this->client->slug . '_tracking_skipped');
|
| 976 |
|
| 977 |
+
$data = array(
|
| 978 |
'hash' => $this->client->hash,
|
| 979 |
'previously_skipped' => false,
|
| 980 |
+
);
|
| 981 |
|
| 982 |
if ($skipped === 'yes') {
|
| 983 |
$data['previously_skipped'] = true;
|
ml-slider.php
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
* Plugin Name: MetaSlider
|
| 7 |
* Plugin URI: https://www.metaslider.com
|
| 8 |
* Description: Easy to use slideshow plugin. Create SEO optimised responsive slideshows with Nivo Slider, Flex Slider, Coin Slider and Responsive Slides.
|
| 9 |
-
* Version: 3.18.
|
| 10 |
* Author: MetaSlider
|
| 11 |
* Author URI: https://www.metaslider.com
|
| 12 |
* License: GPL-2.0+
|
|
@@ -35,7 +35,7 @@ class MetaSliderPlugin
|
|
| 35 |
*
|
| 36 |
* @var string
|
| 37 |
*/
|
| 38 |
-
public $version = '3.18.
|
| 39 |
|
| 40 |
/**
|
| 41 |
* Pro installed version number
|
| 6 |
* Plugin Name: MetaSlider
|
| 7 |
* Plugin URI: https://www.metaslider.com
|
| 8 |
* Description: Easy to use slideshow plugin. Create SEO optimised responsive slideshows with Nivo Slider, Flex Slider, Coin Slider and Responsive Slides.
|
| 9 |
+
* Version: 3.18.9
|
| 10 |
* Author: MetaSlider
|
| 11 |
* Author URI: https://www.metaslider.com
|
| 12 |
* License: GPL-2.0+
|
| 35 |
*
|
| 36 |
* @var string
|
| 37 |
*/
|
| 38 |
+
public $version = '3.18.9';
|
| 39 |
|
| 40 |
/**
|
| 41 |
* Pro installed version number
|
readme.txt
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
Contributors: matchalabs, DavidAnderson, dnutbourne, kbat82
|
| 3 |
Tags: slideshow, slider, image slider, carousel, gallery, flexslider, wordpress slider, nivoslider, rotating banner, responsive slideshow, seo slideshow, unsplash
|
| 4 |
Requires at least: 3.5
|
| 5 |
-
Stable tag: 3.18.
|
| 6 |
Requires PHP: 5.2
|
| 7 |
-
Tested up to: 5.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -173,6 +173,11 @@ See https://www.metaslider.com/documentation/image-cropping/
|
|
| 173 |
|
| 174 |
== Changelog ==
|
| 175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
= 3.18.8 - 2020/Nov/2 =
|
| 177 |
|
| 178 |
* TWEAK: Pass callback function to Appsero instead of relying on caching.
|
| 2 |
Contributors: matchalabs, DavidAnderson, dnutbourne, kbat82
|
| 3 |
Tags: slideshow, slider, image slider, carousel, gallery, flexslider, wordpress slider, nivoslider, rotating banner, responsive slideshow, seo slideshow, unsplash
|
| 4 |
Requires at least: 3.5
|
| 5 |
+
Stable tag: 3.18.9
|
| 6 |
Requires PHP: 5.2
|
| 7 |
+
Tested up to: 5.6
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 173 |
|
| 174 |
== Changelog ==
|
| 175 |
|
| 176 |
+
= 3.18.9 - 2020/Nov/5 =
|
| 177 |
+
|
| 178 |
+
* FIX: Adds polyfill for WP 4.5 wp_add_inline_script
|
| 179 |
+
* FIX: Removes some non PHP 5.3 code from 3rd party lib
|
| 180 |
+
|
| 181 |
= 3.18.8 - 2020/Nov/2 =
|
| 182 |
|
| 183 |
* TWEAK: Pass callback function to Appsero instead of relying on caching.
|
