MetaSlider - Version 3.18.6

Version Description

  • 2020/Oct/26 =

  • FIX: Remove PHP 7.3 specific trailing commas

Download this release

Release Info

Developer metaslider
Plugin Icon 128x128 MetaSlider
Version 3.18.6
Comparing to
See all releases

Code changes from version 3.18.5 to 3.18.6

admin/routes/api.php CHANGED
@@ -939,133 +939,133 @@ if (class_exists('WP_REST_Controller')) :
939
  register_rest_route($this->namespace, '/slideshow/all', array(array(
940
  'methods' => 'GET',
941
  'callback' => array($this->api, 'get_slideshows'),
942
- 'permission_callback' => array($this->api, 'can_access'),
943
  )));
944
  register_rest_route($this->namespace, '/slideshow/list', array(array(
945
  'methods' => 'GET',
946
  'callback' => array($this->api, 'list_slideshows'),
947
- 'permission_callback' => array($this->api, 'can_access'),
948
  )));
949
  register_rest_route($this->namespace, '/slideshow/single', array(array(
950
  'methods' => 'GET',
951
  'callback' => array($this->api, 'get_single_slideshow'),
952
- 'permission_callback' => array($this->api, 'can_access'),
953
  )));
954
  register_rest_route($this->namespace, '/slideshow/preview', array(array(
955
  'methods' => 'GET',
956
  'callback' => array($this->api, 'get_preview'),
957
- 'permission_callback' => array($this->api, 'can_access'),
958
  )));
959
  register_rest_route($this->namespace, '/slideshow/save', array(array(
960
  'methods' => 'POST',
961
  'callback' => array($this->api, 'save_slideshow'),
962
- 'permission_callback' => array($this->api, 'can_access'),
963
  )));
964
  register_rest_route($this->namespace, '/slideshow/delete', array(array(
965
  'methods' => 'POST',
966
  'callback' => array($this->api, 'delete_slideshow'),
967
- 'permission_callback' => array($this->api, 'can_access'),
968
  )));
969
  register_rest_route($this->namespace, '/slideshow/duplicate', array(array(
970
  'methods' => 'POST',
971
  'callback' => array($this->api, 'duplicate_slideshow'),
972
- 'permission_callback' => array($this->api, 'can_access'),
973
  )));
974
  register_rest_route($this->namespace, '/slideshow/search', array(array(
975
  'methods' => 'GET',
976
  'callback' => array($this->api, 'search_slideshows'),
977
- 'permission_callback' => array($this->api, 'can_access'),
978
  )));
979
  register_rest_route($this->namespace, '/slideshow/export', array(array(
980
  'methods' => 'GET',
981
  'callbacks' => array($this->api, 'export_slideshows'),
982
- 'permission_callback' => array($this->api, 'can_access'),
983
  )));
984
  register_rest_route($this->namespace, '/slideshow/import', array(array(
985
  'methods' => 'POST',
986
  'callback' => array($this->api, 'import_slideshows'),
987
- 'permission_callback' => array($this->api, 'can_access'),
988
  )));
989
  register_rest_route($this->namespace, '/themes/all', array(array(
990
  'methods' => 'GET',
991
  'callback' => array($this->api, 'get_all_free_themes'),
992
- 'permission_callback' => array($this->api, 'can_access'),
993
  )));
994
  register_rest_route($this->namespace, '/themes/custom', array(array(
995
  'methods' => 'GET',
996
  'callback' => array($this->api, 'get_custom_themes'),
997
- 'permission_callback' => array($this->api, 'can_access'),
998
  )));
999
  register_rest_route($this->namespace, '/themes/set', array(array(
1000
  'methods' => 'POST',
1001
  'callback' => array($this->api, 'set_theme'),
1002
- 'permission_callback' => array($this->api, 'can_access'),
1003
  )));
1004
 
1005
  register_rest_route($this->namespace, '/import/images', array(array(
1006
  'methods' => 'POST',
1007
  'callback' => array($this->api, 'import_images'),
1008
- 'permission_callback' => array($this->api, 'can_access'),
1009
  )));
1010
 
1011
  register_rest_route($this->namespace, '/tour/status', array(array(
1012
  'methods' => 'POST',
1013
  'callback' => array($this->api, 'set_tour_status'),
1014
- 'permission_callback' => array($this->api, 'can_access'),
1015
  )));
1016
 
1017
  register_rest_route($this->namespace, '/settings/user/save', array(array(
1018
  'methods' => 'POST',
1019
  'callback' => array($this->api, 'save_user_setting'),
1020
- 'permission_callback' => array($this->api, 'can_access'),
1021
  )));
1022
 
1023
  register_rest_route($this->namespace, '/settings/global/save', array(array(
1024
  'methods' => 'POST',
1025
  'callback' => array($this->api, 'save_global_settings'),
1026
- 'permission_callback' => array($this->api, 'can_access'),
1027
  )));
1028
 
1029
  register_rest_route($this->namespace, '/settings/single', array(array(
1030
  'methods' => 'GET',
1031
  'callback' => array($this->api, 'get_single_setting'),
1032
- 'permission_callback' => array($this->api, 'can_access'),
1033
  )));
1034
 
1035
  register_rest_route($this->namespace, '/settings/global', array(array(
1036
  'methods' => 'GET',
1037
  'callback' => array($this->api, 'get_global_settings'),
1038
- 'permission_callback' => array($this->api, 'can_access'),
1039
  )));
1040
 
1041
  register_rest_route($this->namespace, '/settings/slideshow/save', array(array(
1042
  'methods' => 'POST',
1043
  'callback' => array($this->api, 'save_all_slideshow_settings'),
1044
- 'permission_callback' => array($this->api, 'can_access'),
1045
  )));
1046
 
1047
  register_rest_route($this->namespace, '/settings/slideshow/save-single', array(array(
1048
  'methods' => 'POST',
1049
  'callback' => array($this->api, 'save_single_slideshow_setting'),
1050
- 'permission_callback' => array($this->api, 'can_access'),
1051
  )));
1052
 
1053
  register_rest_route($this->namespace, '/settings/slideshow/defaults', array(array(
1054
  'methods' => 'GET',
1055
  'callback' => array($this->api, 'get_slideshow_default_settings'),
1056
- 'permission_callback' => array($this->api, 'can_access'),
1057
  )));
1058
 
1059
  register_rest_route($this->namespace, '/settings/slideshow/defaults/save', array(array(
1060
  'methods' => 'POST',
1061
  'callback' => array($this->api, 'save_slideshow_default_settings'),
1062
- 'permission_callback' => array($this->api, 'can_access'),
1063
  )));
1064
 
1065
  register_rest_route($this->namespace, '/images/ids-from-filenames', array(array(
1066
  'methods' => 'POST',
1067
  'callback' => array($this->api, 'get_image_ids_from_file_name'),
1068
- 'permission_callback' => array($this->api, 'can_access'),
1069
  )));
1070
  }
1071
  }
939
  register_rest_route($this->namespace, '/slideshow/all', array(array(
940
  'methods' => 'GET',
941
  'callback' => array($this->api, 'get_slideshows'),
942
+ 'permission_callback' => array($this->api, 'can_access')
943
  )));
944
  register_rest_route($this->namespace, '/slideshow/list', array(array(
945
  'methods' => 'GET',
946
  'callback' => array($this->api, 'list_slideshows'),
947
+ 'permission_callback' => array($this->api, 'can_access')
948
  )));
949
  register_rest_route($this->namespace, '/slideshow/single', array(array(
950
  'methods' => 'GET',
951
  'callback' => array($this->api, 'get_single_slideshow'),
952
+ 'permission_callback' => array($this->api, 'can_access')
953
  )));
954
  register_rest_route($this->namespace, '/slideshow/preview', array(array(
955
  'methods' => 'GET',
956
  'callback' => array($this->api, 'get_preview'),
957
+ 'permission_callback' => array($this->api, 'can_access')
958
  )));
959
  register_rest_route($this->namespace, '/slideshow/save', array(array(
960
  'methods' => 'POST',
961
  'callback' => array($this->api, 'save_slideshow'),
962
+ 'permission_callback' => array($this->api, 'can_access')
963
  )));
964
  register_rest_route($this->namespace, '/slideshow/delete', array(array(
965
  'methods' => 'POST',
966
  'callback' => array($this->api, 'delete_slideshow'),
967
+ 'permission_callback' => array($this->api, 'can_access')
968
  )));
969
  register_rest_route($this->namespace, '/slideshow/duplicate', array(array(
970
  'methods' => 'POST',
971
  'callback' => array($this->api, 'duplicate_slideshow'),
972
+ 'permission_callback' => array($this->api, 'can_access')
973
  )));
974
  register_rest_route($this->namespace, '/slideshow/search', array(array(
975
  'methods' => 'GET',
976
  'callback' => array($this->api, 'search_slideshows'),
977
+ 'permission_callback' => array($this->api, 'can_access')
978
  )));
979
  register_rest_route($this->namespace, '/slideshow/export', array(array(
980
  'methods' => 'GET',
981
  'callbacks' => array($this->api, 'export_slideshows'),
982
+ 'permission_callback' => array($this->api, 'can_access')
983
  )));
984
  register_rest_route($this->namespace, '/slideshow/import', array(array(
985
  'methods' => 'POST',
986
  'callback' => array($this->api, 'import_slideshows'),
987
+ 'permission_callback' => array($this->api, 'can_access')
988
  )));
989
  register_rest_route($this->namespace, '/themes/all', array(array(
990
  'methods' => 'GET',
991
  'callback' => array($this->api, 'get_all_free_themes'),
992
+ 'permission_callback' => array($this->api, 'can_access')
993
  )));
994
  register_rest_route($this->namespace, '/themes/custom', array(array(
995
  'methods' => 'GET',
996
  'callback' => array($this->api, 'get_custom_themes'),
997
+ 'permission_callback' => array($this->api, 'can_access')
998
  )));
999
  register_rest_route($this->namespace, '/themes/set', array(array(
1000
  'methods' => 'POST',
1001
  'callback' => array($this->api, 'set_theme'),
1002
+ 'permission_callback' => array($this->api, 'can_access')
1003
  )));
1004
 
1005
  register_rest_route($this->namespace, '/import/images', array(array(
1006
  'methods' => 'POST',
1007
  'callback' => array($this->api, 'import_images'),
1008
+ 'permission_callback' => array($this->api, 'can_access')
1009
  )));
1010
 
1011
  register_rest_route($this->namespace, '/tour/status', array(array(
1012
  'methods' => 'POST',
1013
  'callback' => array($this->api, 'set_tour_status'),
1014
+ 'permission_callback' => array($this->api, 'can_access')
1015
  )));
1016
 
1017
  register_rest_route($this->namespace, '/settings/user/save', array(array(
1018
  'methods' => 'POST',
1019
  'callback' => array($this->api, 'save_user_setting'),
1020
+ 'permission_callback' => array($this->api, 'can_access')
1021
  )));
1022
 
1023
  register_rest_route($this->namespace, '/settings/global/save', array(array(
1024
  'methods' => 'POST',
1025
  'callback' => array($this->api, 'save_global_settings'),
1026
+ 'permission_callback' => array($this->api, 'can_access')
1027
  )));
1028
 
1029
  register_rest_route($this->namespace, '/settings/single', array(array(
1030
  'methods' => 'GET',
1031
  'callback' => array($this->api, 'get_single_setting'),
1032
+ 'permission_callback' => array($this->api, 'can_access')
1033
  )));
1034
 
1035
  register_rest_route($this->namespace, '/settings/global', array(array(
1036
  'methods' => 'GET',
1037
  'callback' => array($this->api, 'get_global_settings'),
1038
+ 'permission_callback' => array($this->api, 'can_access')
1039
  )));
1040
 
1041
  register_rest_route($this->namespace, '/settings/slideshow/save', array(array(
1042
  'methods' => 'POST',
1043
  'callback' => array($this->api, 'save_all_slideshow_settings'),
1044
+ 'permission_callback' => array($this->api, 'can_access')
1045
  )));
1046
 
1047
  register_rest_route($this->namespace, '/settings/slideshow/save-single', array(array(
1048
  'methods' => 'POST',
1049
  'callback' => array($this->api, 'save_single_slideshow_setting'),
1050
+ 'permission_callback' => array($this->api, 'can_access')
1051
  )));
1052
 
1053
  register_rest_route($this->namespace, '/settings/slideshow/defaults', array(array(
1054
  'methods' => 'GET',
1055
  'callback' => array($this->api, 'get_slideshow_default_settings'),
1056
+ 'permission_callback' => array($this->api, 'can_access')
1057
  )));
1058
 
1059
  register_rest_route($this->namespace, '/settings/slideshow/defaults/save', array(array(
1060
  'methods' => 'POST',
1061
  'callback' => array($this->api, 'save_slideshow_default_settings'),
1062
+ 'permission_callback' => array($this->api, 'can_access')
1063
  )));
1064
 
1065
  register_rest_route($this->namespace, '/images/ids-from-filenames', array(array(
1066
  'methods' => 'POST',
1067
  'callback' => array($this->api, 'get_image_ids_from_file_name'),
1068
+ 'permission_callback' => array($this->api, 'can_access')
1069
  )));
1070
  }
1071
  }
admin/support/Analytics.php CHANGED
@@ -32,7 +32,7 @@ class MetaSlider_Analytics
32
  $this->boot(
33
  apply_filters('metaslider_appsero_app_key', 'c3c10cf6-1a8f-4d7f-adf3-6bbbc5fe2885'),
34
  apply_filters('metaslider_appsero_app_name', 'MetaSlider'),
35
- apply_filters('metaslider_appsero_app_path', METASLIDER_PATH . 'ml-slider.php'),
36
  );
37
 
38
  // Show notice only if they are not already opt in (pro will override this to show the opt-out notice once)
@@ -199,7 +199,7 @@ class MetaSlider_Analytics
199
  'cancelled_tour_on' => get_option('metaslider_tour_cancelled_on'),
200
  'optin_user_info' => get_option('metaslider_optin_user_extras'),
201
  'optin_via' => get_option('metaslider_optin_via'),
202
- 'slider_count' => $sliders_count ? $sliders_count->found_posts : 0,
203
  );
204
  // Cache one day
205
  set_transient('metaslider_extra_analytics_data', $data, 86400);
@@ -259,7 +259,7 @@ class MetaSlider_Analytics
259
  'id' => $current_user->ID,
260
  'email' => $current_user->user_email,
261
  'ip' => isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '',
262
- 'time' => time(),
263
  ));
264
 
265
  if ($this->appsero) {
32
  $this->boot(
33
  apply_filters('metaslider_appsero_app_key', 'c3c10cf6-1a8f-4d7f-adf3-6bbbc5fe2885'),
34
  apply_filters('metaslider_appsero_app_name', 'MetaSlider'),
35
+ apply_filters('metaslider_appsero_app_path', METASLIDER_PATH . 'ml-slider.php')
36
  );
37
 
38
  // Show notice only if they are not already opt in (pro will override this to show the opt-out notice once)
199
  'cancelled_tour_on' => get_option('metaslider_tour_cancelled_on'),
200
  'optin_user_info' => get_option('metaslider_optin_user_extras'),
201
  'optin_via' => get_option('metaslider_optin_via'),
202
+ 'slider_count' => $sliders_count ? $sliders_count->found_posts : 0
203
  );
204
  // Cache one day
205
  set_transient('metaslider_extra_analytics_data', $data, 86400);
259
  'id' => $current_user->ID,
260
  'email' => $current_user->user_email,
261
  'ip' => isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '',
262
+ 'time' => time()
263
  ));
264
 
265
  if ($this->appsero) {
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.5
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.5';
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.6
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.6';
39
 
40
  /**
41
  * Pro installed version number
readme.txt CHANGED
@@ -2,7 +2,7 @@
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.5
6
  Requires PHP: 5.2
7
  Tested up to: 5.5
8
  License: GPLv2 or later
@@ -173,6 +173,10 @@ See https://www.metaslider.com/documentation/image-cropping/
173
 
174
  == Changelog ==
175
 
 
 
 
 
176
  = 3.18.5 - 2020/Oct/22 =
177
 
178
  * TWEAK: Moves the support related items to a separate page in prep to make it more robust.
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
6
  Requires PHP: 5.2
7
  Tested up to: 5.5
8
  License: GPLv2 or later
173
 
174
  == Changelog ==
175
 
176
+ = 3.18.6 - 2020/Oct/26 =
177
+
178
+ * FIX: Remove PHP 7.3 specific trailing commas
179
+
180
  = 3.18.5 - 2020/Oct/22 =
181
 
182
  * TWEAK: Moves the support related items to a separate page in prep to make it more robust.