ITRO Popup Plugin - Version 4.6

Version Description

database error fixed

Download this release

Release Info

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

Code changes from version 4.5.9 to 4.6

Files changed (4) hide show
  1. functions/database-function.php +1 -1
  2. mc-main.php +6 -3
  3. readme.txt +8 -6
  4. uninstall.php +4 -2
functions/database-function.php CHANGED
@@ -46,7 +46,7 @@ function itro_update_db()
46
  itro_update_option('popup_border_radius',8);
47
  }
48
 
49
- if( get_option('itro_prev_ver') <= 4.58 && $wpdb->prefix != 'wp_' )
50
  {
51
  $wpdb->query("RENAME TABLE wp_itro_plugin_option TO ". $wpdb->prefix ."itro_plugin_option");
52
  $wpdb->query("RENAME TABLE wp_itro_plugin_field TO ". $wpdb->prefix ."itro_plugin_field");
46
  itro_update_option('popup_border_radius',8);
47
  }
48
 
49
+ if( get_option('itro_prev_ver') <= 4.6 && $wpdb->prefix != 'wp_' )
50
  {
51
  $wpdb->query("RENAME TABLE wp_itro_plugin_option TO ". $wpdb->prefix ."itro_plugin_option");
52
  $wpdb->query("RENAME TABLE wp_itro_plugin_field TO ". $wpdb->prefix ."itro_plugin_field");
mc-main.php CHANGED
@@ -6,14 +6,14 @@ This file is part of ITRO Popup Plugin.
6
  Plugin Name: ITRO Popup Plugin
7
  Plugin URI: http://www.itro.eu/
8
  Description: EN - Show a perfecly centered customizable popup and a popup-system for age-restricted site and allow to insert own HTML code. IT - Visualizza un popup perfettamente centrato e personalizzabile con possibile blocco per i siti con restrizioni di eta' e permette di inserire il proprio codice HTML.
9
- Author: I.T.RO.(c) Sez. Informatica
10
  E-mail: support@itro.eu
11
- Version: 4.5.9
12
  Author URI: http://www.itro.eu/
13
  */
14
 
15
  global $ITRO_VER;
16
- $ITRO_VER = 4.59;
17
 
18
  define('itroPath', plugins_url() . '/itro-popup/');
19
  define('itroImages', plugins_url() . '/itro-popup/images/');
@@ -57,6 +57,9 @@ function itro_get_woo_shop_id()
57
  itro_update_option('woo_shop_id', get_the_id());
58
  }
59
 
 
 
 
60
  add_action( 'woocommerce_before_shop_loop' , 'itro_get_woo_shop_id' );
61
 
62
  add_action( 'wp_footer','itro_display_popup');
6
  Plugin Name: ITRO Popup Plugin
7
  Plugin URI: http://www.itro.eu/
8
  Description: EN - Show a perfecly centered customizable popup and a popup-system for age-restricted site and allow to insert own HTML code. IT - Visualizza un popup perfettamente centrato e personalizzabile con possibile blocco per i siti con restrizioni di eta' e permette di inserire il proprio codice HTML.
9
+ Author: ITRO Team
10
  E-mail: support@itro.eu
11
+ Version: 4.6
12
  Author URI: http://www.itro.eu/
13
  */
14
 
15
  global $ITRO_VER;
16
+ $ITRO_VER = 4.6;
17
 
18
  define('itroPath', plugins_url() . '/itro-popup/');
19
  define('itroImages', plugins_url() . '/itro-popup/images/');
57
  itro_update_option('woo_shop_id', get_the_id());
58
  }
59
 
60
+ /* check current version for db update: forced with init function due register_activation_hook not working with automatic updates */
61
+ add_action( 'init','itro_check_ver');
62
+
63
  add_action( 'woocommerce_before_shop_loop' , 'itro_get_woo_shop_id' );
64
 
65
  add_action( 'wp_footer','itro_display_popup');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.itro.eu/index.php/donate/
4
  Tags: popup, popup message, popup box, popup ads, popup advertising, jquery popup, popup jquery, automatic popup, age restriction, popup block, popup violence, age validation popup, adult, adult content, content warning, content warning popup, fancy box, fancy popup, custom popup, advertising popup, pop-up, lightbox, lightbox popup
5
  Requires at least: 3.0.1
6
  Tested up to: 3.8.1
7
- Stable tag: 4.5.9
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -91,13 +91,12 @@ DONATE NOW! - HELP US TO DEVELOP FOR YOU! [DONATE NOW](http://www.itro.eu/?page_
91
 
92
  == Screenshots ==
93
 
94
- FOR TUTORIAL AND FAQ VISIT THE OFFICIAL SITE [CLICK HERE!](http://www.itro.eu/?page_id=390)
95
-
96
- DONATE NOW! - HELP US TO DEVELOP FOR YOU! [DONATE NOW](http://www.itro.eu/?page_id=396)
97
-
98
- no screenshot avaliable
99
 
100
  == Changelog ==
 
 
 
101
  = 4.5.9 =
102
  improved caching compatibility
103
 
@@ -273,6 +272,9 @@ bug fixed: color table now works in admin pannel.
273
  First released version.
274
 
275
  == Upgrade Notice ==
 
 
 
276
  = 4.5.9 =
277
  improved caching compatibility
278
 
4
  Tags: popup, popup message, popup box, popup ads, popup advertising, jquery popup, popup jquery, automatic popup, age restriction, popup block, popup violence, age validation popup, adult, adult content, content warning, content warning popup, fancy box, fancy popup, custom popup, advertising popup, pop-up, lightbox, lightbox popup
5
  Requires at least: 3.0.1
6
  Tested up to: 3.8.1
7
+ Stable tag: 4.6
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
91
 
92
  == Screenshots ==
93
 
94
+ VIEW NOW DEMOS ON OUR OFFICIAL SITE - [CLICK HERE!](http://www.itro.eu/?page_id=3056)
 
 
 
 
95
 
96
  == Changelog ==
97
+ = 4.6 =
98
+ database error fixed
99
+
100
  = 4.5.9 =
101
  improved caching compatibility
102
 
272
  First released version.
273
 
274
  == Upgrade Notice ==
275
+ = 4.6 =
276
+ database error fixed
277
+
278
  = 4.5.9 =
279
  improved caching compatibility
280
 
uninstall.php CHANGED
@@ -3,6 +3,8 @@
3
  if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {exit ();}
4
  else
5
  {
 
 
6
  include_once ('functions/database-function.php');
7
  if( itro_get_option('delete_data') == 'yes' )
8
  {
@@ -12,8 +14,8 @@ else
12
  delete_option('itro_curr_ver');
13
  delete_option('itro_prev_ver');
14
 
15
- $wpdb->query("DROP TABLE wp_itro_plugin_option");
16
- $wpdb->query("DROP TABLE wp_itro_plugin_field");
17
  }
18
  }
19
  ?>
3
  if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {exit ();}
4
  else
5
  {
6
+ global $wpdb;
7
+
8
  include_once ('functions/database-function.php');
9
  if( itro_get_option('delete_data') == 'yes' )
10
  {
14
  delete_option('itro_curr_ver');
15
  delete_option('itro_prev_ver');
16
 
17
+ $wpdb->query("DROP TABLE " . $wpdb->prefix . "itro_plugin_option");
18
+ $wpdb->query("DROP TABLE " . $wpdb->prefix . "itro_plugin_field");
19
  }
20
  }
21
  ?>