Popup Builder – Responsive WordPress Pop up - Version 4.1.13

Version Description

Download this release

Release Info

Developer Sygnoos
Plugin Icon 128x128 Popup Builder – Responsive WordPress Pop up
Version 4.1.13
Comparing to
See all releases

Code changes from version 4.1.12 to 4.1.13

com/classes/Actions.php CHANGED
@@ -57,7 +57,7 @@ class Actions
57
  add_shortcode('sg_popup', array($this, 'popupShortcode'));
58
  add_filter('cron_schedules', array($this, 'cronAddMinutes'), 10, 1);
59
  add_action('sgpb_send_newsletter', array($this, 'newsletterSendEmail'), 10, 1);
60
- add_action('sgpbGetBannerContentOnce', array($this, 'getBannerContent'), 10, 1);
61
  add_action('plugins_loaded', array($this, 'loadTextDomain'));
62
  // for change admin popup list order
63
  add_action('pre_get_posts', array($this, 'preGetPosts'));
57
  add_shortcode('sg_popup', array($this, 'popupShortcode'));
58
  add_filter('cron_schedules', array($this, 'cronAddMinutes'), 10, 1);
59
  add_action('sgpb_send_newsletter', array($this, 'newsletterSendEmail'), 10, 1);
60
+ // add_action('sgpbGetBannerContentOnce', array($this, 'getBannerContent'), 10, 1);
61
  add_action('plugins_loaded', array($this, 'loadTextDomain'));
62
  // for change admin popup list order
63
  add_action('pre_get_posts', array($this, 'preGetPosts'));
com/classes/popups/SGPopup.php CHANGED
@@ -652,6 +652,7 @@ abstract class SGPopup
652
  $valueAttrs = $attrs[$ruleData['param']]['htmlAttrs'];
653
  $postType = $valueAttrs['data-value-param'];
654
  $isNotPostType = '';
 
655
  if (isset($valueAttrs['isNotPostType'])) {
656
  $isNotPostType = $valueAttrs['isNotPostType'];
657
  }
@@ -663,7 +664,7 @@ abstract class SGPopup
663
  if (isset($valueAttrs['isPostCategory'])){
664
  $targetData[$groupId][$ruleId]['value'] = ConfigDataHelper::getTermsByIds($ruleData['value']);
665
  } elseif(isset($valueAttrs['isPostTag'])) {
666
- $targetData[$groupId][$ruleId]['value'] = ConfigDataHelper::getTagsByIds($ruleData['value']);
667
  }
668
 
669
  /*
652
  $valueAttrs = $attrs[$ruleData['param']]['htmlAttrs'];
653
  $postType = $valueAttrs['data-value-param'];
654
  $isNotPostType = '';
655
+
656
  if (isset($valueAttrs['isNotPostType'])) {
657
  $isNotPostType = $valueAttrs['isNotPostType'];
658
  }
664
  if (isset($valueAttrs['isPostCategory'])){
665
  $targetData[$groupId][$ruleId]['value'] = ConfigDataHelper::getTermsByIds($ruleData['value']);
666
  } elseif(isset($valueAttrs['isPostTag'])) {
667
+ $targetData[$groupId][$ruleId]['value'] = ConfigDataHelper::getTagsBySlug($ruleData['value']);
668
  }
669
 
670
  /*
com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
 
6
- define('SG_POPUP_VERSION', '4.1.12');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
3
  exit();
4
  }
5
 
6
+ define('SG_POPUP_VERSION', '4.1.13');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
com/helpers/ConfigDataHelper.php CHANGED
@@ -264,6 +264,18 @@ class ConfigDataHelper
264
  }
265
  return $allTags;
266
  }
 
 
 
 
 
 
 
 
 
 
 
 
267
 
268
  public static function getTermsByIds($ids = array())
269
  {
264
  }
265
  return $allTags;
266
  }
267
+ public static function getTagsBySlug($ids = [])
268
+ {
269
+ $allTags = array();
270
+ $tags = get_tags(array(
271
+ 'hide_empty' => false,
272
+ 'slug' => $ids
273
+ ));
274
+ foreach ($tags as $tag) {
275
+ $allTags[$tag->slug] = $tag->name;
276
+ }
277
+ return $allTags;
278
+ }
279
 
280
  public static function getTermsByIds($ids = array())
281
  {
popup-builder.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Popup Builder
4
  * Plugin URI: https://popup-builder.com
5
  * Description: The most complete popup plugin. Html, image, iframe, shortcode, video and many other popup types. Manage popup dimensions, effects, themes and more.
6
- * Version: 4.1.12
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
3
  * Plugin Name: Popup Builder
4
  * Plugin URI: https://popup-builder.com
5
  * Description: The most complete popup plugin. Html, image, iframe, shortcode, video and many other popup types. Manage popup dimensions, effects, themes and more.
6
+ * Version: 4.1.13
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
readme.txt CHANGED
@@ -8,7 +8,7 @@ Tags: popup, pop up, wordpress popup, popup maker, exit popup, popup builder, wo
8
  Requires at least: 4.2
9
  Tested up to: 6.0
10
  Requires PHP: 5.3.3
11
- Stable tag: 4.1.12
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
@@ -146,6 +146,10 @@ Go to the Popup Builder settings and set your desired options.
146
 
147
  == Changelog ==
148
 
 
 
 
 
149
  = Version 4.1.12 =
150
  * Improvement of code: Cross-site request forgery issues have been solved : Credits: @yeraisci_
151
 
@@ -559,4 +563,4 @@ Leave us a good review :)
559
 
560
  == Upgrade Notice ==
561
 
562
- Current Version of Popup Builder is 4.1.12
8
  Requires at least: 4.2
9
  Tested up to: 6.0
10
  Requires PHP: 5.3.3
11
+ Stable tag: 4.1.13
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
146
 
147
  == Changelog ==
148
 
149
+ = Version 4.1.13 =
150
+ * Bug fixed related to tags in Display rules
151
+ * Bug fixed related to PHP warnings that were visible in the plugin
152
+
153
  = Version 4.1.12 =
154
  * Improvement of code: Cross-site request forgery issues have been solved : Credits: @yeraisci_
155
 
563
 
564
  == Upgrade Notice ==
565
 
566
+ Current Version of Popup Builder is 4.1.13