ITRO Popup Plugin - Version 5.0.3

Version Description

FIXED: woocommerce deprecated function:view support request https://wordpress.org/support/topic/woocommerce_get_page_id-deprecated-2/

Download this release

Release Info

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

Code changes from version 5.0.2 to 5.0.3

Files changed (3) hide show
  1. functions/core-function.php +2 -2
  2. mc-main.php +4 -4
  3. readme.txt +5 -2
functions/core-function.php CHANGED
@@ -89,10 +89,10 @@ function itro_display_popup() {
89
  /* woocommerce shop page identification */
90
  $woo_shop = NULL;
91
  $woo_shop_id = NULL;
92
- if (function_exists('is_shop') && function_exists('woocommerce_get_page_id')) /* if this functions exist, woocommerce is installed! */ {
93
  if (is_shop()) /* if the actual page is the standard woocommerce shop page */ {
94
  $woo_shop = true;
95
- $woo_shop_id = woocommerce_get_page_id('shop');
96
  }
97
  }
98
 
89
  /* woocommerce shop page identification */
90
  $woo_shop = NULL;
91
  $woo_shop_id = NULL;
92
+ if (function_exists('is_shop') && function_exists('wc_get_page_id')) /* if this functions exist, woocommerce is installed! */ {
93
  if (is_shop()) /* if the actual page is the standard woocommerce shop page */ {
94
  $woo_shop = true;
95
+ $woo_shop_id = wc_get_page_id('shop');
96
  }
97
  }
98
 
mc-main.php CHANGED
@@ -1,19 +1,19 @@
1
  <?php
2
  /*
3
  Plugin Name: ITRO Popup Plugin
4
- Plugin URI: http://www.itroteam.com
5
  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.
6
  Author: ITRO Team
7
  E-mail: support@itroteam.com
8
  Text Domain: itro-popup
9
- Version: 5.0.2
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 = '5.0.2';
17
 
18
  global $popup_fired; //it check if there is a popup visualization via shortcode or via automatic visualization
19
  $popup_fired = false;
1
  <?php
2
  /*
3
  Plugin Name: ITRO Popup Plugin
4
+ Plugin URI: https://www.itroteam.com
5
  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.
6
  Author: ITRO Team
7
  E-mail: support@itroteam.com
8
  Text Domain: itro-popup
9
+ Version: 5.0.3
10
+ Author URI: https://www.itroteam.com
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14
 
15
  global $ITRO_VER;
16
+ $ITRO_VER = '5.0.3';
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
@@ -3,8 +3,8 @@ Contributors: ITRO
3
  Donate link: https://www.itroteam.com/leave-a-review/
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.7.3
7
- Stable tag: 5.0.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -131,6 +131,9 @@ LIVE DEMOS - [CLICK HERE!](https://www.itroteam.com/wordpress-popup-samples-demo
131
  BACKEND SCREENSHOT - [CLICK HERE!](https://www.itroteam.com/wordpress-popup-samples-demos/#backend)
132
 
133
  == Changelog ==
 
 
 
134
  = 5.0.2 =
135
  IMPROVED: system info on the popup admin page
136
  ADDED: force table installation in case something gone wrong during plugin activation
3
  Donate link: https://www.itroteam.com/leave-a-review/
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: 5.2.2
7
+ Stable tag: 5.0.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
131
  BACKEND SCREENSHOT - [CLICK HERE!](https://www.itroteam.com/wordpress-popup-samples-demos/#backend)
132
 
133
  == Changelog ==
134
+ = 5.0.3 =
135
+ FIXED: woocommerce deprecated function:view support request https://wordpress.org/support/topic/woocommerce_get_page_id-deprecated-2/
136
+
137
  = 5.0.2 =
138
  IMPROVED: system info on the popup admin page
139
  ADDED: force table installation in case something gone wrong during plugin activation