Version Description
Download this release
Release Info
Developer | Sygnoos |
Plugin | Popup Builder – Responsive WordPress Pop up |
Version | 3.82 |
Comparing to | |
See all releases |
Code changes from version 3.81 to 3.82
- com/classes/Ajax.php +1 -1
- com/classes/popups/SGPopup.php +1 -1
- com/config/configPackage.php +1 -1
- com/helpers/AdminHelper.php +9 -0
- popup-builder.php +1 -1
- readme.txt +5 -2
com/classes/Ajax.php
CHANGED
@@ -439,7 +439,7 @@ class Ajax
|
|
439 |
$isDraft = '_preview';
|
440 |
}
|
441 |
|
442 |
-
if (!$obj) {
|
443 |
wp_die(SGPB_AJAX_STATUS_FALSE);
|
444 |
}
|
445 |
$options = $obj->getOptions();
|
439 |
$isDraft = '_preview';
|
440 |
}
|
441 |
|
442 |
+
if (!$obj || !is_object($obj)) {
|
443 |
wp_die(SGPB_AJAX_STATUS_FALSE);
|
444 |
}
|
445 |
$options = $obj->getOptions();
|
com/classes/popups/SGPopup.php
CHANGED
@@ -180,7 +180,7 @@ abstract class SGPopup
|
|
180 |
{
|
181 |
$postId = $this->getId();
|
182 |
|
183 |
-
if (
|
184 |
$popupContent = wpautop($this->content);
|
185 |
} else {
|
186 |
$popupContent = $this->content;
|
180 |
{
|
181 |
$postId = $this->getId();
|
182 |
|
183 |
+
if (!AdminHelper::hasBlocks($this->content)) {
|
184 |
$popupContent = wpautop($this->content);
|
185 |
} else {
|
186 |
$popupContent = $this->content;
|
com/config/configPackage.php
CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
|
|
3 |
exit();
|
4 |
}
|
5 |
|
6 |
-
define('SG_POPUP_VERSION', '3.
|
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', '3.82');
|
7 |
define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
|
8 |
define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
|
com/helpers/AdminHelper.php
CHANGED
@@ -2063,4 +2063,13 @@ class AdminHelper
|
|
2063 |
|
2064 |
return $altText;
|
2065 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2066 |
}
|
2063 |
|
2064 |
return $altText;
|
2065 |
}
|
2066 |
+
|
2067 |
+
public static function hasBlocks($content)
|
2068 |
+
{
|
2069 |
+
if (function_exists('has_blocks')) {
|
2070 |
+
return has_blocks($content);
|
2071 |
+
}
|
2072 |
+
|
2073 |
+
return false !== strpos( (string) $content, '<!-- wp:' );
|
2074 |
+
}
|
2075 |
}
|
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: 3.
|
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: 3.82
|
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: 5.7
|
10 |
Requires PHP: 5.3.3
|
11 |
-
Stable tag: 3.
|
12 |
License: GPLv2 or later
|
13 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
14 |
|
@@ -145,6 +145,9 @@ Go to the Popup Builder settings and set your desired options.
|
|
145 |
|
146 |
== Changelog ==
|
147 |
|
|
|
|
|
|
|
148 |
= Version 3.81 =
|
149 |
* Bug fixed related to PHP Fatal error.
|
150 |
* Bug fixed related to the notice.
|
@@ -441,4 +444,4 @@ Leave us a good review :)
|
|
441 |
|
442 |
== Upgrade Notice ==
|
443 |
|
444 |
-
Current Version of Popup Builder is 3.
|
8 |
Requires at least: 4.2
|
9 |
Tested up to: 5.7
|
10 |
Requires PHP: 5.3.3
|
11 |
+
Stable tag: 3.82
|
12 |
License: GPLv2 or later
|
13 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
14 |
|
145 |
|
146 |
== Changelog ==
|
147 |
|
148 |
+
= Version 3.82 =
|
149 |
+
* Bug fixed related to PHP Fatal error.
|
150 |
+
|
151 |
= Version 3.81 =
|
152 |
* Bug fixed related to PHP Fatal error.
|
153 |
* Bug fixed related to the notice.
|
444 |
|
445 |
== Upgrade Notice ==
|
446 |
|
447 |
+
Current Version of Popup Builder is 3.82
|