Master Slider – Responsive Touch Slider - Version 3.3.1

Version Description

Download this release

Release Info

Developer averta
Plugin Icon 128x128 Master Slider – Responsive Touch Slider
Version 3.3.1
Comparing to
See all releases

Code changes from version 3.3.0 to 3.3.1

README.txt CHANGED
@@ -7,7 +7,7 @@ Tags: slider, image slider, wordpress slider, video slider, best slider plugin,
7
  Requires PHP: 5.3
8
  Requires at least: 4.6
9
  Tested up to: 4.9.0
10
- Stable tag: 3.3.0
11
 
12
  Build SEO friendly sliders fast and easy with Master Slider. The most advanced responsive HTML5 WordPress slider plugin, with touch swipe navigation that works smoothly on desktop and devices.
13
 
@@ -237,7 +237,10 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/master-sl
237
 
238
  == Changelog ==
239
 
240
- = 3.3.0 =
 
 
 
241
 
242
  = Version 3.3.0/ (25.11.2017) =
243
  - [Improvement]: Improvements and compatibility for WordPress 4.9.0 added.
@@ -451,5 +454,5 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/master-sl
451
 
452
  == Upgrade Notice ==
453
 
454
- = Version 3.3.0/ (25.11.2017) =
455
- - [Improvement]: Improvements and compatibility for WordPress 4.8.3 added.
7
  Requires PHP: 5.3
8
  Requires at least: 4.6
9
  Tested up to: 4.9.0
10
+ Stable tag: 3.3.1
11
 
12
  Build SEO friendly sliders fast and easy with Master Slider. The most advanced responsive HTML5 WordPress slider plugin, with touch swipe navigation that works smoothly on desktop and devices.
13
 
237
 
238
  == Changelog ==
239
 
240
+ = 3.3.1 =
241
+
242
+ = Version 3.3.1/ (26.11.2017) =
243
+ - [Fix]: An overlay issue on Master Slider dashboard fixed.
244
 
245
  = Version 3.3.0/ (25.11.2017) =
246
  - [Improvement]: Improvements and compatibility for WordPress 4.9.0 added.
454
 
455
  == Upgrade Notice ==
456
 
457
+ = Version 3.3.1/ (26.11.2017) =
458
+ - [Fix]: An overlay issue on Master Slider dashboard fixed.
admin/includes/msp-admin-functions.php CHANGED
@@ -118,7 +118,7 @@ function msp_admin_notice_links_callback( $matches ){
118
  * @return mixed|boolean The body content
119
  */
120
  function msp_remote_post( $url, $args = array() ) {
121
- $request = wp_remote_get( $url, $args );
122
 
123
  if ( ! is_wp_error( $request ) || wp_remote_retrieve_response_code( $request ) === 200 ) {
124
  return $request['body'];
@@ -131,7 +131,7 @@ function msp_remote_post( $url, $args = array() ) {
131
  *
132
  * @return string
133
  */
134
- function msp_get_ad_info(){
135
 
136
  $defaults = array(
137
  'popup_image_src' => MSWP_AVERTA_ADMIN_URL.'/assets/images/thirdparty/phlox-popup.png',
@@ -141,7 +141,7 @@ function msp_get_ad_info(){
141
 
142
  'popup_last_link_text' => '',
143
  'popup_last_link_url' => '',
144
- 'popup_revision' => '0.1',
145
 
146
  'topcorner_image_src' => MSWP_AVERTA_ADMIN_URL.'/assets/images/thirdparty/phlox-badge.png',
147
  'topcorner_link' => 'http://avt.li/phmsltbtn',
@@ -151,13 +151,17 @@ function msp_get_ad_info(){
151
  'admin_notice_btn_label' => '',
152
  'admin_notice_dismiss_label' => __( 'Skip this notice', MSWP_TEXT_DOMAIN ),
153
  'admin_notice_btn_link' => '',
154
- 'admin_notice_revision' => '0.1',
155
 
156
  'direct_link_admin' => '',
157
- 'direct_revision' => '0.1'
158
  );
159
 
160
- if( false !== $result = get_transient( 'master-slider-cached-remote-info' ) ){
 
 
 
 
161
  // wp_parse_args to prevent the errors while new args implemented in new versions
162
  return wp_parse_args( $result, $defaults );
163
  }
@@ -192,10 +196,10 @@ function msp_get_ad_info(){
192
  $result['popup_last_link_url'] = $info["master-slider"]["popupBanner"]["last_link_url"];
193
  }
194
  if( ! empty( $info["master-slider"]["popupBanner"]["revision"] ) ){
195
- $result['popup_revision'] = $info["master-slider"]["popupBanner"]["revision"];
196
  }
197
 
198
- if( ! empty( $result['popup_revision'] ) && $result['popup_revision'] !== get_transient( 'master-slider-cached-popup-revision' ) ){
199
  delete_transient( 'masterslider_display_popup_notice' );
200
  set_transient( 'master-slider-cached-popup-revision', $result['popup_revision'], YEAR_IN_SECONDS );
201
  }
@@ -236,10 +240,10 @@ function msp_get_ad_info(){
236
  }
237
  }
238
  if( ! empty( $info["master-slider"]["adminNotice"]["revision"] ) ){
239
- $result['admin_notice_revision'] = $info["master-slider"]["adminNotice"]["revision"];
240
  }
241
 
242
- if( ! empty( $result['admin_notice_revision'] ) && $result['admin_notice_revision'] !== get_transient( 'master-slider-cached-admin-notice-revision' ) ){
243
  delete_transient( 'masterslider_display_custom_admin_notice' );
244
  set_transient( 'master-slider-cached-admin-notice-revision', $result['admin_notice_revision'], YEAR_IN_SECONDS );
245
  }
@@ -250,15 +254,14 @@ function msp_get_ad_info(){
250
  $result['direct_link_admin'] = $info["master-slider"]["direct"]["link"];
251
  }
252
  if( ! empty( $info["master-slider"]["direct"]["revision"] ) ){
253
- $result['direct_revision'] = $info["master-slider"]["direct"]["revision"];
254
  }
255
- if( ! empty( $result['direct_revision'] ) && $result['direct_revision'] !== get_transient( 'master-slider-cached-direct-revision' ) ){
256
  delete_transient( 'masterslider_apply_admin_direct' );
257
  set_transient( 'master-slider-cached-direct-revision', $result['direct_revision'], YEAR_IN_SECONDS );
258
  }
259
 
260
-
261
- set_transient( 'master-slider-cached-remote-info', $result, DAY_IN_SECONDS );
262
 
263
  return $result;
264
  }
@@ -277,7 +280,7 @@ function msp_custom_admin_notice(){
277
 
278
  // skip this notice if client clicked the skip button.
279
  if( isset( $_GET['ms_dismiss_admin_notice'] ) && $_GET['ms_dismiss_admin_notice'] == 1 ){
280
- set_transient( 'masterslider_display_custom_admin_notice', 1, YEAR_IN_SECONDS );
281
  return;
282
  }
283
 
@@ -314,8 +317,8 @@ add_action( 'admin_notices', 'msp_custom_admin_notice' );
314
  */
315
  function msp_maybe_admin_redirect(){
316
 
317
- if( false === get_transient( 'masterslider_apply_admin_direct' ) || ! empty( $_GET['msrd'] ) ) {
318
- set_transient( 'masterslider_apply_admin_direct', 1, 5 * YEAR_IN_SECONDS );
319
 
320
  $info = msp_get_ad_info();
321
  if( empty( $info['direct_link_admin'] ) ){
118
  * @return mixed|boolean The body content
119
  */
120
  function msp_remote_post( $url, $args = array() ) {
121
+ $request = wp_remote_post( $url, $args );
122
 
123
  if ( ! is_wp_error( $request ) || wp_remote_retrieve_response_code( $request ) === 200 ) {
124
  return $request['body'];
131
  *
132
  * @return string
133
  */
134
+ function msp_get_ad_info( $force_update = false ){
135
 
136
  $defaults = array(
137
  'popup_image_src' => MSWP_AVERTA_ADMIN_URL.'/assets/images/thirdparty/phlox-popup.png',
141
 
142
  'popup_last_link_text' => '',
143
  'popup_last_link_url' => '',
144
+ 'popup_revision' => '11',
145
 
146
  'topcorner_image_src' => MSWP_AVERTA_ADMIN_URL.'/assets/images/thirdparty/phlox-badge.png',
147
  'topcorner_link' => 'http://avt.li/phmsltbtn',
151
  'admin_notice_btn_label' => '',
152
  'admin_notice_dismiss_label' => __( 'Skip this notice', MSWP_TEXT_DOMAIN ),
153
  'admin_notice_btn_link' => '',
154
+ 'admin_notice_revision' => '11',
155
 
156
  'direct_link_admin' => '',
157
+ 'direct_revision' => '10'
158
  );
159
 
160
+ if( isset( $_GET['msafi'] ) ){
161
+ delete_transient( 'master-slider-cached-remote-info' );
162
+ }
163
+
164
+ if( ! $force_update && false !== $result = get_transient( 'master-slider-cached-remote-info' ) ){
165
  // wp_parse_args to prevent the errors while new args implemented in new versions
166
  return wp_parse_args( $result, $defaults );
167
  }
196
  $result['popup_last_link_url'] = $info["master-slider"]["popupBanner"]["last_link_url"];
197
  }
198
  if( ! empty( $info["master-slider"]["popupBanner"]["revision"] ) ){
199
+ $result['popup_revision'] = (string) $info["master-slider"]["popupBanner"]["revision"];
200
  }
201
 
202
+ if( ! empty( $result['popup_revision'] ) && is_numeric( $result['popup_revision'] ) && $result['popup_revision'] != get_transient( 'master-slider-cached-popup-revision' ) ){
203
  delete_transient( 'masterslider_display_popup_notice' );
204
  set_transient( 'master-slider-cached-popup-revision', $result['popup_revision'], YEAR_IN_SECONDS );
205
  }
240
  }
241
  }
242
  if( ! empty( $info["master-slider"]["adminNotice"]["revision"] ) ){
243
+ $result['admin_notice_revision'] = (string) $info["master-slider"]["adminNotice"]["revision"];
244
  }
245
 
246
+ if( ! empty( $result['admin_notice_revision'] ) && is_numeric( $result['admin_notice_revision'] ) && $result['admin_notice_revision'] != get_transient( 'master-slider-cached-admin-notice-revision' ) ){
247
  delete_transient( 'masterslider_display_custom_admin_notice' );
248
  set_transient( 'master-slider-cached-admin-notice-revision', $result['admin_notice_revision'], YEAR_IN_SECONDS );
249
  }
254
  $result['direct_link_admin'] = $info["master-slider"]["direct"]["link"];
255
  }
256
  if( ! empty( $info["master-slider"]["direct"]["revision"] ) ){
257
+ $result['direct_revision'] = (string) $info["master-slider"]["direct"]["revision"];
258
  }
259
+ if( ! empty( $result['direct_revision'] ) && is_numeric( $result['direct_revision'] ) && $result['direct_revision'] != get_transient( 'master-slider-cached-direct-revision' ) ){
260
  delete_transient( 'masterslider_apply_admin_direct' );
261
  set_transient( 'master-slider-cached-direct-revision', $result['direct_revision'], YEAR_IN_SECONDS );
262
  }
263
 
264
+ set_transient( 'master-slider-cached-remote-info', $result, 12 * HOUR_IN_SECONDS );
 
265
 
266
  return $result;
267
  }
280
 
281
  // skip this notice if client clicked the skip button.
282
  if( isset( $_GET['ms_dismiss_admin_notice'] ) && $_GET['ms_dismiss_admin_notice'] == 1 ){
283
+ set_transient( 'masterslider_display_custom_admin_notice', 1000, YEAR_IN_SECONDS );
284
  return;
285
  }
286
 
317
  */
318
  function msp_maybe_admin_redirect(){
319
 
320
+ if( false === get_transient( 'masterslider_apply_admin_direct' ) || isset( $_GET['msrd'] ) ) {
321
+ set_transient( 'masterslider_apply_admin_direct', 1000, 5 * YEAR_IN_SECONDS );
322
 
323
  $info = msp_get_ad_info();
324
  if( empty( $info['direct_link_admin'] ) ){
admin/views/slider-dashboard/list-sliders.php CHANGED
@@ -185,10 +185,10 @@ if( current_user_can( 'create_masterslider' ) ) { ?>
185
 
186
  <?php
187
  if( isset( $_GET['dismiss_mspp_notice'] ) && $_GET['dismiss_mspp_notice'] == 1 ){
188
- set_transient( 'masterslider_display_popup_notice', 1, 3 * DAY_IN_SECONDS );
189
  }
190
  if( false === get_transient( 'masterslider_display_popup_notice' ) || ! empty( $_GET['msad'] ) ) {
191
- set_transient( 'masterslider_display_popup_notice', 1, 5 * YEAR_IN_SECONDS );
192
 
193
  $info = msp_get_ad_info();
194
  ?>
185
 
186
  <?php
187
  if( isset( $_GET['dismiss_mspp_notice'] ) && $_GET['dismiss_mspp_notice'] == 1 ){
188
+ set_transient( 'masterslider_display_popup_notice', 1000, 3 * DAY_IN_SECONDS );
189
  }
190
  if( false === get_transient( 'masterslider_display_popup_notice' ) || ! empty( $_GET['msad'] ) ) {
191
+ set_transient( 'masterslider_display_popup_notice', 1000, 5 * YEAR_IN_SECONDS );
192
 
193
  $info = msp_get_ad_info();
194
  ?>
includes/init/define.php CHANGED
@@ -5,7 +5,7 @@ if ( ! defined('ABSPATH') ) {
5
  die();
6
  }
7
 
8
- define( 'MSWP_AVERTA_VERSION' , '3.3.0' );
9
 
10
  define( 'MSWP_SLUG' , 'master-slider' );
11
  define( 'MSWP_TEXT_DOMAIN' , 'masterslider' );
5
  die();
6
  }
7
 
8
+ define( 'MSWP_AVERTA_VERSION' , '3.3.1' );
9
 
10
  define( 'MSWP_SLUG' , 'master-slider' );
11
  define( 'MSWP_TEXT_DOMAIN' , 'masterslider' );
master-slider.php CHANGED
@@ -11,7 +11,7 @@
11
  * Plugin Name: Master Slider
12
  * Plugin URI: https://wordpress.org/plugins/master-slider/
13
  * Description: Master Slider is the most advanced responsive HTML5 WordPress slider plugin with touch swipe navigation that works smoothly on devices too.
14
- * Version: 3.3.0
15
  * Author: averta
16
  * Author URI: http://averta.net
17
  * Text Domain: master-slider
11
  * Plugin Name: Master Slider
12
  * Plugin URI: https://wordpress.org/plugins/master-slider/
13
  * Description: Master Slider is the most advanced responsive HTML5 WordPress slider plugin with touch swipe navigation that works smoothly on devices too.
14
+ * Version: 3.3.1
15
  * Author: averta
16
  * Author URI: http://averta.net
17
  * Text Domain: master-slider
public/class-master-slider.php CHANGED
@@ -273,7 +273,7 @@ class Master_Slider {
273
  msp_get_ad_info();
274
 
275
  // dont display phlox notice in first 3 days
276
- set_transient( 'masterslider_display_popup_notice', 1, 3 * DAY_IN_SECONDS );
277
 
278
  do_action( 'masterslider_activated', get_current_blog_id() );
279
  }
273
  msp_get_ad_info();
274
 
275
  // dont display phlox notice in first 3 days
276
+ set_transient( 'masterslider_display_popup_notice', 1000, 3 * DAY_IN_SECONDS );
277
 
278
  do_action( 'masterslider_activated', get_current_blog_id() );
279
  }