Popup by Supsystic - Version 1.10.14

Version Description

/ 03.06.2022 = * Fixes to HTML tags * Add support WP 6.0 * Fixes for Media Library

Download this release

Release Info

Developer supsystic.com
Plugin Icon 128x128 Popup by Supsystic
Version 1.10.14
Comparing to
See all releases

Code changes from version 1.10.13 to 1.10.14

Files changed (6) hide show
  1. classes/req.php +2 -2
  2. config.php +1 -1
  3. functions.php +16 -0
  4. modules/popup/models/popup.php +14 -0
  5. pps.php +1 -1
  6. readme.txt +7 -2
classes/req.php CHANGED
@@ -28,12 +28,12 @@ class reqPps {
28
  $value = wp_kses_post($value);
29
  }
30
  } else {
31
- $value = wp_kses_post($value, $allowed);
32
  }
33
  }
34
  } else {
35
  if( !is_array($value) ) {
36
- $value = wp_kses_post(sanitize_text_field($value));
37
  } else {
38
  self::sanitize_array($value);
39
  }
28
  $value = wp_kses_post($value);
29
  }
30
  } else {
31
+ $value = wp_kses_post($value);
32
  }
33
  }
34
  } else {
35
  if( !is_array($value) ) {
36
+ $value = wp_kses_post($value);
37
  } else {
38
  self::sanitize_array($value);
39
  }
config.php CHANGED
@@ -49,7 +49,7 @@
49
  define('PPS_EOL', "\n");
50
 
51
  define('PPS_PLUGIN_INSTALLED', true);
52
- define('PPS_VERSION', '1.10.13');
53
  define('PPS_USER', 'user');
54
 
55
  define('PPS_CLASS_PREFIX', 'ppsc');
49
  define('PPS_EOL', "\n");
50
 
51
  define('PPS_PLUGIN_INSTALLED', true);
52
+ define('PPS_VERSION', '1.10.14');
53
  define('PPS_USER', 'user');
54
 
55
  define('PPS_CLASS_PREFIX', 'ppsc');
functions.php CHANGED
@@ -328,4 +328,20 @@ if(!function_exists('ctype_alpha')) {
328
  return (bool) preg_match('/[^\pL]+/', $text);
329
  }
330
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
331
  /*****/
328
  return (bool) preg_match('/[^\pL]+/', $text);
329
  }
330
  }
331
+
332
+ if(!function_exists('custom_wpkses_post_tags_pps')) {
333
+ function custom_wpkses_post_tags_pps( $tags, $context ) {
334
+ if ( 'post' === $context ) {
335
+ $tags['iframe'] = array(
336
+ 'src' => true,
337
+ 'height' => true,
338
+ 'width' => true,
339
+ 'frameborder' => true,
340
+ 'allowfullscreen' => true,
341
+ );
342
+ }
343
+ return $tags;
344
+ }
345
+ add_filter( 'wp_kses_allowed_html', 'custom_wpkses_post_tags_pps', 10, 2 );
346
+ }
347
  /*****/
modules/popup/models/popup.php CHANGED
@@ -96,6 +96,14 @@ class popupModelPps extends modelPps {
96
  } else {
97
  $row['params'] = $this->_prepareParamsAfterDb( utilsPps::unserialize( $row['params'] ) );
98
  }
 
 
 
 
 
 
 
 
99
  if(!empty($row['params']) && isset($row['params']['tpl']) && !empty($row['params']['tpl'])) {
100
  $keysCheckEmail = array('sub_txt_subscriber_mail_from', 'sub_new_email', 'sub_txt_confirm_mail_from',
101
  'reg_txt_subscriber_mail_from', 'reg_txt_confirm_mail_from', 'reg_new_email');
@@ -153,6 +161,12 @@ class popupModelPps extends modelPps {
153
  protected function _dataSave($data, $update = false) {
154
  $data = $this->_beforeDbReplace($data);
155
  if(isset($data['params']))
 
 
 
 
 
 
156
  $data['params'] = utilsPps::serialize( $data['params'] );
157
  return $data;
158
  }
96
  } else {
97
  $row['params'] = $this->_prepareParamsAfterDb( utilsPps::unserialize( $row['params'] ) );
98
  }
99
+ for ($i=0; $i < 10; $i++) {
100
+ $txtField = 'txt_'.$i;
101
+ if (isset($row['params']['tpl'][$txtField]) && !empty($row['params']['tpl'][$txtField])) {
102
+ if (base64_decode($row['params']['tpl'][$txtField], TRUE)) {
103
+ $row['params']['tpl'][$txtField] = stripslashes(base64_decode($row['params']['tpl'][$txtField]));
104
+ }
105
+ }
106
+ }
107
  if(!empty($row['params']) && isset($row['params']['tpl']) && !empty($row['params']['tpl'])) {
108
  $keysCheckEmail = array('sub_txt_subscriber_mail_from', 'sub_new_email', 'sub_txt_confirm_mail_from',
109
  'reg_txt_subscriber_mail_from', 'reg_txt_confirm_mail_from', 'reg_new_email');
161
  protected function _dataSave($data, $update = false) {
162
  $data = $this->_beforeDbReplace($data);
163
  if(isset($data['params']))
164
+ for ($i=0; $i < 10; $i++) {
165
+ $txtField = 'txt_'.$i;
166
+ if (isset($data['params']['tpl'][$txtField]) && !empty($data['params']['tpl'][$txtField])) {
167
+ $data['params']['tpl'][$txtField] = base64_encode($data['params']['tpl'][$txtField]);
168
+ }
169
+ }
170
  $data['params'] = utilsPps::serialize( $data['params'] );
171
  return $data;
172
  }
pps.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Popup by Supsystic
4
  * Plugin URI: https://supsystic.com/plugins/popup-plugin/
5
  * Description: The Best WordPress popup plugin to help you gain more subscribers, social followers or advertisement. Responsive popups with friendly options
6
- * Version: 1.10.13
7
  * Author: supsystic.com
8
  * Author URI: https://supsystic.com
9
  * Text Domain: popup-by-supsystic
3
  * Plugin Name: Popup by Supsystic
4
  * Plugin URI: https://supsystic.com/plugins/popup-plugin/
5
  * Description: The Best WordPress popup plugin to help you gain more subscribers, social followers or advertisement. Responsive popups with friendly options
6
+ * Version: 1.10.14
7
  * Author: supsystic.com
8
  * Author URI: https://supsystic.com
9
  * Text Domain: popup-by-supsystic
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: supsystic.com
3
  Donate link: https://supsystic.com/plugins/popup-plugin
4
  Tags: popup, popup WordPress plugin, marketing, popover, pop-up, popup builder, social popup, facebook popup, popup builder, popup maker
5
- Tested up to: 5.9
6
- Stable tag: 1.10.13
7
 
8
  Create elegant popup easily with Popup Builder by Supsystic. Popup with Subscription Forms, Facebook popup, Optin and Social locks, Contact Forms etc.
9
 
@@ -116,6 +116,11 @@ Enable “Redirect after close” option in Appearance setting on the Design tab
116
  Leave us a nice review 🙂
117
 
118
  == Changelog ==
 
 
 
 
 
119
  = 1.10.13 / 13.04.2022 =
120
  * Add fix for wp review
121
 
2
  Contributors: supsystic.com
3
  Donate link: https://supsystic.com/plugins/popup-plugin
4
  Tags: popup, popup WordPress plugin, marketing, popover, pop-up, popup builder, social popup, facebook popup, popup builder, popup maker
5
+ Tested up to: 6.0
6
+ Stable tag: 1.10.14
7
 
8
  Create elegant popup easily with Popup Builder by Supsystic. Popup with Subscription Forms, Facebook popup, Optin and Social locks, Contact Forms etc.
9
 
116
  Leave us a nice review 🙂
117
 
118
  == Changelog ==
119
+ = 1.10.14 / 03.06.2022 =
120
+ * Fixes to HTML tags
121
+ * Add support WP 6.0
122
+ * Fixes for Media Library
123
+
124
  = 1.10.13 / 13.04.2022 =
125
  * Add fix for wp review
126