ITRO Popup Plugin - Version 4.9.4

Version Description

FIXED: obsolete WPLANG usage FIXED: data sanification reject "auto" setting for popup height

Download this release

Release Info

Developer ITRO
Plugin Icon 128x128 ITRO Popup Plugin
Version 4.9.4
Comparing to
See all releases

Code changes from version 4.9.3 to 4.9.4

functions/core-function.php CHANGED
@@ -25,7 +25,7 @@ function itro_init()
25
  itro_update_option('cookie_time_exp',0);
26
  itro_update_option('popup_background','#FFFFFF');
27
  itro_update_option('popup_border_color','#F7FF00');
28
- itro_update_option('px_popup_width',300);
29
  itro_update_option('px_popup_height',0);
30
  itro_update_option('show_countdown','yes');
31
  itro_update_option('auto_margin_check','yes');
@@ -39,7 +39,7 @@ function itro_init()
39
  itro_update_option('popup_padding',2);
40
  itro_update_option('page_selection','none');
41
 
42
- switch(WPLANG)
43
  {
44
  case 'en_US':
45
  $welcome_text = '<h1 style="text-align: center;"><span style="color: #000000; font-size: 20;">Hello, this is a pop-up sample.</span></h1><p style="text-align: center;"><span style="color: #000000; font-size: 20;">The basic stetting to get started are: Popup height, Popup time, Next visualization, Popup border color, Popup background.</span></p><p style="text-align: center;"><span style="color: #000000; font-size: 20;">Write watever you want in the Custom text editor and enjoy our plugin!</span></p><p>&nbsp;</p>';
@@ -192,7 +192,7 @@ function itro_list_pages()
192
  /**
193
  * Sanitize data of popup options and custom content
194
  *
195
- * @since 4.10
196
  *
197
  * @param string $data_name : the name of the data to sanitize/validate
198
  * @param string $data : string value to sanitize/validate
@@ -276,11 +276,15 @@ function ipp_validate_data($data_name, $data){
276
  }
277
  break;
278
  case 'select_popup_width':
279
- case 'select_popup_height':
280
  if(!in_array($data, array('perc','px'))){
281
  $data = 'px';
282
  }
283
  break;
 
 
 
 
 
284
  //cleaned by json_encode() **to improve
285
  case 'selected_page_id':
286
  break;
25
  itro_update_option('cookie_time_exp',0);
26
  itro_update_option('popup_background','#FFFFFF');
27
  itro_update_option('popup_border_color','#F7FF00');
28
+ itro_update_option('px_popup_width',600);
29
  itro_update_option('px_popup_height',0);
30
  itro_update_option('show_countdown','yes');
31
  itro_update_option('auto_margin_check','yes');
39
  itro_update_option('popup_padding',2);
40
  itro_update_option('page_selection','none');
41
 
42
+ switch(get_locale())
43
  {
44
  case 'en_US':
45
  $welcome_text = '<h1 style="text-align: center;"><span style="color: #000000; font-size: 20;">Hello, this is a pop-up sample.</span></h1><p style="text-align: center;"><span style="color: #000000; font-size: 20;">The basic stetting to get started are: Popup height, Popup time, Next visualization, Popup border color, Popup background.</span></p><p style="text-align: center;"><span style="color: #000000; font-size: 20;">Write watever you want in the Custom text editor and enjoy our plugin!</span></p><p>&nbsp;</p>';
192
  /**
193
  * Sanitize data of popup options and custom content
194
  *
195
+ * @since 4.9.3
196
  *
197
  * @param string $data_name : the name of the data to sanitize/validate
198
  * @param string $data : string value to sanitize/validate
276
  }
277
  break;
278
  case 'select_popup_width':
 
279
  if(!in_array($data, array('perc','px'))){
280
  $data = 'px';
281
  }
282
  break;
283
+ case 'select_popup_height':
284
+ if(!in_array($data, array('perc','px','auto'))){
285
+ $data = 'auto';
286
+ }
287
+ break;
288
  //cleaned by json_encode() **to improve
289
  case 'selected_page_id':
290
  break;
functions/database-function.php CHANGED
@@ -60,6 +60,12 @@ function itro_update_db()
60
  wp_delete_post(itro_get_option('preview_id'), true);
61
  }
62
  }
 
 
 
 
 
 
63
  if( get_option('itro_prev_ver') <= 4.91 )
64
  {
65
  itro_update_option('countdown_text', 'This popup will close in:');
60
  wp_delete_post(itro_get_option('preview_id'), true);
61
  }
62
  }
63
+ // added the text for countdown
64
+ if( get_option('itro_prev_ver') <= 4.91 )
65
+ {
66
+ itro_update_option('countdown_text', 'This popup will close in:');
67
+ }
68
+ // reset the popup height after error for data sanitization
69
  if( get_option('itro_prev_ver') <= 4.91 )
70
  {
71
  itro_update_option('countdown_text', 'This popup will close in:');
mc-main.php CHANGED
@@ -6,14 +6,14 @@ Description: EN - Show a perfecly centered customizable popup and a popup-system
6
  Author: ITRO Team
7
  E-mail: support@itroteam.com
8
  Text Domain: itro-popup
9
- Version: 4.9.3
10
  Author URI: http://www.itroteam.com
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14
 
15
  global $ITRO_VER;
16
- $ITRO_VER = 4.93;
17
 
18
  global $popup_fired; //it check if there is a popup visualization via shortcode or via automatic visualization
19
  $popup_fired = false;
6
  Author: ITRO Team
7
  E-mail: support@itroteam.com
8
  Text Domain: itro-popup
9
+ Version: 4.9.4
10
  Author URI: http://www.itroteam.com
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14
 
15
  global $ITRO_VER;
16
+ $ITRO_VER = 4.94;
17
 
18
  global $popup_fired; //it check if there is a popup visualization via shortcode or via automatic visualization
19
  $popup_fired = false;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.itroteam.com/
4
  Tags: multilingual popup, popup, popup message, popuup optin, popup box, popup ads, popup advertising, popup block, popup content warning, fancy box, fancy popup, advertising popup, pop-up, lightbox popup
5
  Requires at least: 3.0.1
6
  Tested up to: 4.5
7
- Stable tag: 4.9.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -101,6 +101,10 @@ DONATE NOW! - HELP US TO KEEP IT FREE! [DONATE NOW](http://www.itroteam.com/)
101
  VIEW LIVE DEMOS ON OUR OFFICIAL SITE - [CLICK HERE!](http://www.itroteam.com/)
102
 
103
  == Changelog ==
 
 
 
 
104
  = 4.9.3 =
105
  FIXED: selected page not working
106
 
@@ -333,6 +337,10 @@ bug fixed: color table now works in admin pannel.
333
  First released version.
334
 
335
  == Upgrade Notice ==
 
 
 
 
336
  = 4.9.3 =
337
  FIXED: selected page not working
338
 
4
  Tags: multilingual popup, popup, popup message, popuup optin, popup box, popup ads, popup advertising, popup block, popup content warning, fancy box, fancy popup, advertising popup, pop-up, lightbox popup
5
  Requires at least: 3.0.1
6
  Tested up to: 4.5
7
+ Stable tag: 4.9.4
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
101
  VIEW LIVE DEMOS ON OUR OFFICIAL SITE - [CLICK HERE!](http://www.itroteam.com/)
102
 
103
  == Changelog ==
104
+ = 4.9.4 =
105
+ FIXED: obsolete WPLANG usage
106
+ FIXED: data sanification reject "auto" setting for popup height
107
+
108
  = 4.9.3 =
109
  FIXED: selected page not working
110
 
337
  First released version.
338
 
339
  == Upgrade Notice ==
340
+ = 4.9.4 =
341
+ FIXED: obsolete WPLANG usage
342
+ FIXED: data sanification reject "auto" setting for popup height
343
+
344
  = 4.9.3 =
345
  FIXED: selected page not working
346