Popup Builder – Responsive WordPress Pop up - Version 4.1.12

Version Description

Download this release

Release Info

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

Code changes from version 4.1.11 to 4.1.12

com/classes/Actions.php CHANGED
@@ -1453,7 +1453,8 @@ class Actions
1453
  public function saveSettings()
1454
  {
1455
  $allowToAction = AdminHelper::userCanAccessTo();
1456
- if (!$allowToAction) {
 
1457
  wp_redirect(get_home_url());
1458
  exit();
1459
  }
1453
  public function saveSettings()
1454
  {
1455
  $allowToAction = AdminHelper::userCanAccessTo();
1456
+ $nonce = isset($_POST['sgpb_saveSettings_nonce']) ? sanitize_text_field($_POST['sgpb_saveSettings_nonce']): '';
1457
+ if (!$allowToAction || !wp_verify_nonce($nonce, 'sgpbSaveSettings')) {
1458
  wp_redirect(get_home_url());
1459
  exit();
1460
  }
com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
 
6
- define('SG_POPUP_VERSION', '4.1.11');
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.12');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
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.11
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.12
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
public/views/settings.php CHANGED
@@ -21,6 +21,7 @@ $userSavedRoles = get_option('sgpb-user-roles');
21
  <div class="sgpb-width-50 sgpb-padding-20">
22
  <p class="sgpb-header-h1 sgpb-margin-top-20 sgpb-margin-bottom-50"><?php esc_html_e('General Settings', SG_POPUP_TEXT_DOMAIN); ?></p>
23
  <form method="POST" action="<?php echo esc_url_raw(admin_url().'admin-post.php?action=sgpbSaveSettings')?>">
 
24
  <div class="formItem">
25
  <p class="subFormItem__title sgpb-flex-220"><?php esc_html_e('Enable DEBUG MODE', SG_POPUP_TEXT_DOMAIN)?>:</p>
26
  <div class="sgpb-onOffSwitch">
21
  <div class="sgpb-width-50 sgpb-padding-20">
22
  <p class="sgpb-header-h1 sgpb-margin-top-20 sgpb-margin-bottom-50"><?php esc_html_e('General Settings', SG_POPUP_TEXT_DOMAIN); ?></p>
23
  <form method="POST" action="<?php echo esc_url_raw(admin_url().'admin-post.php?action=sgpbSaveSettings')?>">
24
+ <?php wp_nonce_field('sgpbSaveSettings', 'sgpb_saveSettings_nonce'); ?>
25
  <div class="formItem">
26
  <p class="subFormItem__title sgpb-flex-220"><?php esc_html_e('Enable DEBUG MODE', SG_POPUP_TEXT_DOMAIN)?>:</p>
27
  <div class="sgpb-onOffSwitch">
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.11
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
@@ -146,6 +146,9 @@ Go to the Popup Builder settings and set your desired options.
146
 
147
  == Changelog ==
148
 
 
 
 
149
  = Version 4.1.11 =
150
  * Improvement of code: touch event has been added for mobile devices
151
  * Bug fixed related to symbols in text area
@@ -556,4 +559,4 @@ Leave us a good review :)
556
 
557
  == Upgrade Notice ==
558
 
559
- Current Version of Popup Builder is 4.1.11
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
 
147
  == Changelog ==
148
 
149
+ = Version 4.1.12 =
150
+ * Improvement of code: Cross-site request forgery issues have been solved : Credits: @yeraisci_
151
+
152
  = Version 4.1.11 =
153
  * Improvement of code: touch event has been added for mobile devices
154
  * Bug fixed related to symbols in text area
559
 
560
  == Upgrade Notice ==
561
 
562
+ Current Version of Popup Builder is 4.1.12