Popup Maker – Popup Forms, Optins & More - Version 1.7.5

Version Description

Download this release

Release Info

Developer danieliser
Plugin Icon 128x128 Popup Maker – Popup Forms, Optins & More
Version 1.7.5
Comparing to
See all releases

Code changes from version 1.7.3 to 1.7.5

classes/Admin/Settings.php CHANGED
@@ -131,6 +131,21 @@ class PUM_Admin_Settings {
131
  */
132
  public static function sanitize_settings( $settings = array() ) {
133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  foreach ( $settings as $key => $value ) {
135
  $field = self::get_field( $key );
136
 
@@ -146,6 +161,7 @@ class PUM_Admin_Settings {
146
  $settings[ $key ] = is_string( $value ) ? trim( $value ) : $value;
147
  break;
148
 
 
149
  case 'measure':
150
  $settings[ $key ] .= $settings[ $key . '_unit' ];
151
  break;
131
  */
132
  public static function sanitize_settings( $settings = array() ) {
133
 
134
+ $fields = self::fields();
135
+
136
+ $fields = PUM_Admin_Helpers::flatten_fields_array( $fields );
137
+
138
+ foreach ( $fields as $field_id => $field ) {
139
+ switch ( $field['type'] ) {
140
+ case 'checkbox':
141
+
142
+ if ( ! isset( $settings[ $field_id ] ) ) {
143
+ $settings[ $field_id ] = false;
144
+ }
145
+ break;
146
+ }
147
+ }
148
+
149
  foreach ( $settings as $key => $value ) {
150
  $field = self::get_field( $key );
151
 
161
  $settings[ $key ] = is_string( $value ) ? trim( $value ) : $value;
162
  break;
163
 
164
+
165
  case 'measure':
166
  $settings[ $key ] .= $settings[ $key . '_unit' ];
167
  break;
classes/Shortcode/PopupClose.php CHANGED
@@ -85,7 +85,7 @@ class PUM_Shortcode_PopupClose extends PUM_Shortcode {
85
  *
86
  * @return array
87
  */
88
- public function shortcode_atts( $atts ) {
89
  $atts = parent::shortcode_atts( $atts );
90
 
91
  if ( ! empty( $atts['class'] ) ) {
85
  *
86
  * @return array
87
  */
88
+ public function shortcode_atts( $atts = array() ) {
89
  $atts = parent::shortcode_atts( $atts );
90
 
91
  if ( ! empty( $atts['class'] ) ) {
classes/Shortcode/PopupTrigger.php CHANGED
@@ -157,7 +157,7 @@ class PUM_Shortcode_PopupTrigger extends PUM_Shortcode {
157
  *
158
  * @return array
159
  */
160
- public function shortcode_atts( $atts ) {
161
  $atts = parent::shortcode_atts( $atts );
162
 
163
  if ( $atts['id'] == 'custom' ) {
157
  *
158
  * @return array
159
  */
160
+ public function shortcode_atts( $atts = array() ) {
161
  $atts = parent::shortcode_atts( $atts );
162
 
163
  if ( $atts['id'] == 'custom' ) {
classes/Shortcode/Subscribe.php CHANGED
@@ -494,7 +494,7 @@ class PUM_Shortcode_Subscribe extends PUM_Shortcode {
494
  *
495
  * @return array
496
  */
497
- public function shortcode_atts( $atts ) {
498
  $atts = parent::shortcode_atts( $atts );
499
 
500
  if ( empty( $atts['provider'] ) ) {
494
  *
495
  * @return array
496
  */
497
+ public function shortcode_atts( $atts = array() ) {
498
  $atts = parent::shortcode_atts( $atts );
499
 
500
  if ( empty( $atts['provider'] ) ) {
includes/class-pum.php CHANGED
@@ -7,9 +7,9 @@ if ( ! defined( 'ABSPATH' ) ) {
7
 
8
  class PUM {
9
 
10
- const VER = '1.7.3';
11
 
12
- const DB_VER = 7;
13
 
14
  const API_URL = 'https://wppopupmaker.com/?edd_action=';
15
 
7
 
8
  class PUM {
9
 
10
+ const VER = '1.7.5';
11
 
12
+ const DB_VER = 8;
13
 
14
  const API_URL = 'https://wppopupmaker.com/?edd_action=';
15
 
languages/popup-maker.pot CHANGED
@@ -102,7 +102,7 @@ msgstr ""
102
  msgid "Add"
103
  msgstr ""
104
 
105
- #: classes/Admin/Assets.php:68, classes/Admin/Settings.php:390, classes/Admin/Settings.php:415, classes/Admin/Tools.php:86, classes/Admin/Tools.php:504, includes/integrations/class-pum-gravity-forms.php:171
106
  msgid "Save"
107
  msgstr ""
108
 
@@ -126,7 +126,7 @@ msgstr ""
126
  msgid "Are you sure you want to delete this cookie?"
127
  msgstr ""
128
 
129
- #: classes/Admin/Assets.php:74, classes/Admin/Popups.php:483, classes/Admin/Settings.php:233, classes/Shortcode/Subscribe.php:113, classes/Shortcode/Subscribe.php:124, classes/Shortcode/Subscribe.php:280, includes/input-options.php:26, includes/input-options.php:115
130
  msgid "None"
131
  msgstr ""
132
 
@@ -246,7 +246,7 @@ msgstr ""
246
  msgid "Analytics"
247
  msgstr ""
248
 
249
- #: classes/Admin/Popups.php:288, classes/Admin/Settings.php:450, classes/Admin/Settings.php:473, classes/Admin/Settings.php:476, classes/Conditions.php:107, classes/Conditions.php:409, classes/Conditions.php:423, classes/Conditions.php:429, classes/Cookies.php:157, classes/Shortcode.php:151, classes/Shortcode.php:163, classes/Shortcode.php:176, classes/Shortcode/Popup.php:51, classes/Shortcode/Popup.php:65, classes/Shortcode/Subscribe.php:60, classes/Shortcode/Subscribe.php:79, classes/Triggers.php:281, includes/class-popmake-fields.php:57
250
  msgid "General"
251
  msgstr ""
252
 
@@ -687,179 +687,179 @@ msgstr ""
687
  msgid "License activated successfully!"
688
  msgstr ""
689
 
690
- #: classes/Admin/Settings.php:229
691
  msgid "Default Newsletter Provider"
692
  msgstr ""
693
 
694
- #: classes/Admin/Settings.php:230
695
  msgid "The default mailing provider used for the subscription form."
696
  msgstr ""
697
 
698
- #: classes/Admin/Settings.php:237
699
  msgid "Success Message"
700
  msgstr ""
701
 
702
- #: classes/Admin/Settings.php:238
703
  msgid "Message to show user when successfuly subscribed."
704
  msgstr ""
705
 
706
- #: classes/Admin/Settings.php:240, includes/functions/newsletter.php:54
707
  msgid "You have been subscribed!"
708
  msgstr ""
709
 
710
- #: classes/Admin/Settings.php:243, classes/Admin/Settings.php:255
711
  msgid "Invalid Email Message"
712
  msgstr ""
713
 
714
- #: classes/Admin/Settings.php:244, classes/Admin/Settings.php:256
715
  msgid "Message to show user when an invalid email is entered."
716
  msgstr ""
717
 
718
- #: classes/Admin/Settings.php:246, includes/functions/newsletter.php:55
719
  msgid "Please check your email and confirm your subscription."
720
  msgstr ""
721
 
722
- #: classes/Admin/Settings.php:249
723
  msgid "Empty Email Message"
724
  msgstr ""
725
 
726
- #: classes/Admin/Settings.php:250
727
  msgid "Message to show user when no email is entered."
728
  msgstr ""
729
 
730
- #: classes/Admin/Settings.php:252, includes/functions/newsletter.php:58
731
  msgid "Please enter a valid email."
732
  msgstr ""
733
 
734
- #: classes/Admin/Settings.php:258, includes/functions/newsletter.php:59
735
  msgid "Email provided is not a valid email address."
736
  msgstr ""
737
 
738
- #: classes/Admin/Settings.php:261
739
  msgid "Error Message"
740
  msgstr ""
741
 
742
- #: classes/Admin/Settings.php:262
743
  msgid "Message to show user when an error has occurred."
744
  msgstr ""
745
 
746
- #: classes/Admin/Settings.php:264, includes/functions/newsletter.php:56
747
  msgid "Error occurred when subscribing. Please try again."
748
  msgstr ""
749
 
750
- #: classes/Admin/Settings.php:267
751
  msgid "Already Subscribed Message"
752
  msgstr ""
753
 
754
- #: classes/Admin/Settings.php:268
755
  msgid "Message to show user who is already subscribed."
756
  msgstr ""
757
 
758
- #: classes/Admin/Settings.php:270, includes/functions/newsletter.php:57
759
  msgid "You are already a subscriber."
760
  msgstr ""
761
 
762
- #: classes/Admin/Settings.php:288
763
  msgid "Disable Popups Admin Bar"
764
  msgstr ""
765
 
766
- #: classes/Admin/Settings.php:289
767
  msgid "This will disable the admin Popups menu item."
768
  msgstr ""
769
 
770
- #: classes/Admin/Settings.php:293
771
  msgid "Enable Debug Mode"
772
  msgstr ""
773
 
774
- #: classes/Admin/Settings.php:294
775
  msgid "This will turn on multiple debug tools used to quickly find issues."
776
  msgstr ""
777
 
778
- #: classes/Admin/Settings.php:298
779
  msgid "Enable Easy Modal v2 Compatibility Mode"
780
  msgstr ""
781
 
782
- #: classes/Admin/Settings.php:299
783
  msgid "This will automatically make any eModal classes you have added to your site launch the appropriate Popup after import."
784
  msgstr ""
785
 
786
- #: classes/Admin/Settings.php:303
787
  msgid "Disables popup open tracking?"
788
  msgstr ""
789
 
790
- #: classes/Admin/Settings.php:304
791
  msgid "This will disable the built in analytics functionality."
792
  msgstr ""
793
 
794
- #: classes/Admin/Settings.php:308
795
  msgid "Hide Admin Support Widget"
796
  msgstr ""
797
 
798
- #: classes/Admin/Settings.php:309
799
  msgid "This will hide the support widget on all popup maker admin pages."
800
  msgstr ""
801
 
802
- #: classes/Admin/Settings.php:313
803
  msgid "Disable categories & tags?"
804
  msgstr ""
805
 
806
- #: classes/Admin/Settings.php:314
807
  msgid "This will disable the popup tags & categories."
808
  msgstr ""
809
 
810
- #: classes/Admin/Settings.php:318
811
  msgid "Disable Popup Maker caching"
812
  msgstr ""
813
 
814
- #: classes/Admin/Settings.php:324
815
  msgid "Don't Load Google Fonts"
816
  msgstr ""
817
 
818
- #: classes/Admin/Settings.php:325
819
  msgid "Check this disable loading of google fonts, useful if the fonts you chose are already loaded with your theme."
820
  msgstr ""
821
 
822
- #: classes/Admin/Settings.php:329
823
  msgid "Don't load Popup Maker core stylesheet."
824
  msgstr ""
825
 
826
- #: classes/Admin/Settings.php:330
827
  msgid "Check this if you have copied the Popup Maker core styles to your own stylesheet or are using custom styles."
828
  msgstr ""
829
 
830
- #: classes/Admin/Settings.php:334
831
  msgid "Don't load popup theme styles to the head."
832
  msgstr ""
833
 
834
- #: classes/Admin/Settings.php:335
835
  msgid "Check this if you have copied the popup theme styles to your own stylesheet or are using custom styles."
836
  msgstr ""
837
 
838
- #: classes/Admin/Settings.php:392
839
  msgid "Popup Maker Settings"
840
  msgstr ""
841
 
842
- #: classes/Admin/Settings.php:451
843
  msgid "Subscriptions"
844
  msgstr ""
845
 
846
- #: classes/Admin/Settings.php:452, includes/admin/admin-setup.php:23, includes/admin/extensions/extensions-page.php:26
847
  msgid "Extensions"
848
  msgstr ""
849
 
850
- #: classes/Admin/Settings.php:453, classes/Admin/Settings.php:482
851
  msgid "Licenses"
852
  msgstr ""
853
 
854
- #: classes/Admin/Settings.php:454, classes/Admin/Settings.php:485
855
  msgid "Misc"
856
  msgstr ""
857
 
858
- #: classes/Admin/Settings.php:479
859
  msgid "Extension Settings"
860
  msgstr ""
861
 
862
- #: classes/Admin/Settings.php:486
863
  msgid "Assets"
864
  msgstr ""
865
 
102
  msgid "Add"
103
  msgstr ""
104
 
105
+ #: classes/Admin/Assets.php:68, classes/Admin/Settings.php:406, classes/Admin/Settings.php:431, classes/Admin/Tools.php:86, classes/Admin/Tools.php:504, includes/integrations/class-pum-gravity-forms.php:171
106
  msgid "Save"
107
  msgstr ""
108
 
126
  msgid "Are you sure you want to delete this cookie?"
127
  msgstr ""
128
 
129
+ #: classes/Admin/Assets.php:74, classes/Admin/Popups.php:483, classes/Admin/Settings.php:249, classes/Shortcode/Subscribe.php:113, classes/Shortcode/Subscribe.php:124, classes/Shortcode/Subscribe.php:280, includes/input-options.php:26, includes/input-options.php:115
130
  msgid "None"
131
  msgstr ""
132
 
246
  msgid "Analytics"
247
  msgstr ""
248
 
249
+ #: classes/Admin/Popups.php:288, classes/Admin/Settings.php:466, classes/Admin/Settings.php:489, classes/Admin/Settings.php:492, classes/Conditions.php:107, classes/Conditions.php:409, classes/Conditions.php:423, classes/Conditions.php:429, classes/Cookies.php:157, classes/Shortcode.php:151, classes/Shortcode.php:163, classes/Shortcode.php:176, classes/Shortcode/Popup.php:51, classes/Shortcode/Popup.php:65, classes/Shortcode/Subscribe.php:60, classes/Shortcode/Subscribe.php:79, classes/Triggers.php:281, includes/class-popmake-fields.php:57
250
  msgid "General"
251
  msgstr ""
252
 
687
  msgid "License activated successfully!"
688
  msgstr ""
689
 
690
+ #: classes/Admin/Settings.php:245
691
  msgid "Default Newsletter Provider"
692
  msgstr ""
693
 
694
+ #: classes/Admin/Settings.php:246
695
  msgid "The default mailing provider used for the subscription form."
696
  msgstr ""
697
 
698
+ #: classes/Admin/Settings.php:253
699
  msgid "Success Message"
700
  msgstr ""
701
 
702
+ #: classes/Admin/Settings.php:254
703
  msgid "Message to show user when successfuly subscribed."
704
  msgstr ""
705
 
706
+ #: classes/Admin/Settings.php:256, includes/functions/newsletter.php:54
707
  msgid "You have been subscribed!"
708
  msgstr ""
709
 
710
+ #: classes/Admin/Settings.php:259, classes/Admin/Settings.php:271
711
  msgid "Invalid Email Message"
712
  msgstr ""
713
 
714
+ #: classes/Admin/Settings.php:260, classes/Admin/Settings.php:272
715
  msgid "Message to show user when an invalid email is entered."
716
  msgstr ""
717
 
718
+ #: classes/Admin/Settings.php:262, includes/functions/newsletter.php:55
719
  msgid "Please check your email and confirm your subscription."
720
  msgstr ""
721
 
722
+ #: classes/Admin/Settings.php:265
723
  msgid "Empty Email Message"
724
  msgstr ""
725
 
726
+ #: classes/Admin/Settings.php:266
727
  msgid "Message to show user when no email is entered."
728
  msgstr ""
729
 
730
+ #: classes/Admin/Settings.php:268, includes/functions/newsletter.php:58
731
  msgid "Please enter a valid email."
732
  msgstr ""
733
 
734
+ #: classes/Admin/Settings.php:274, includes/functions/newsletter.php:59
735
  msgid "Email provided is not a valid email address."
736
  msgstr ""
737
 
738
+ #: classes/Admin/Settings.php:277
739
  msgid "Error Message"
740
  msgstr ""
741
 
742
+ #: classes/Admin/Settings.php:278
743
  msgid "Message to show user when an error has occurred."
744
  msgstr ""
745
 
746
+ #: classes/Admin/Settings.php:280, includes/functions/newsletter.php:56
747
  msgid "Error occurred when subscribing. Please try again."
748
  msgstr ""
749
 
750
+ #: classes/Admin/Settings.php:283
751
  msgid "Already Subscribed Message"
752
  msgstr ""
753
 
754
+ #: classes/Admin/Settings.php:284
755
  msgid "Message to show user who is already subscribed."
756
  msgstr ""
757
 
758
+ #: classes/Admin/Settings.php:286, includes/functions/newsletter.php:57
759
  msgid "You are already a subscriber."
760
  msgstr ""
761
 
762
+ #: classes/Admin/Settings.php:304
763
  msgid "Disable Popups Admin Bar"
764
  msgstr ""
765
 
766
+ #: classes/Admin/Settings.php:305
767
  msgid "This will disable the admin Popups menu item."
768
  msgstr ""
769
 
770
+ #: classes/Admin/Settings.php:309
771
  msgid "Enable Debug Mode"
772
  msgstr ""
773
 
774
+ #: classes/Admin/Settings.php:310
775
  msgid "This will turn on multiple debug tools used to quickly find issues."
776
  msgstr ""
777
 
778
+ #: classes/Admin/Settings.php:314
779
  msgid "Enable Easy Modal v2 Compatibility Mode"
780
  msgstr ""
781
 
782
+ #: classes/Admin/Settings.php:315
783
  msgid "This will automatically make any eModal classes you have added to your site launch the appropriate Popup after import."
784
  msgstr ""
785
 
786
+ #: classes/Admin/Settings.php:319
787
  msgid "Disables popup open tracking?"
788
  msgstr ""
789
 
790
+ #: classes/Admin/Settings.php:320
791
  msgid "This will disable the built in analytics functionality."
792
  msgstr ""
793
 
794
+ #: classes/Admin/Settings.php:324
795
  msgid "Hide Admin Support Widget"
796
  msgstr ""
797
 
798
+ #: classes/Admin/Settings.php:325
799
  msgid "This will hide the support widget on all popup maker admin pages."
800
  msgstr ""
801
 
802
+ #: classes/Admin/Settings.php:329
803
  msgid "Disable categories & tags?"
804
  msgstr ""
805
 
806
+ #: classes/Admin/Settings.php:330
807
  msgid "This will disable the popup tags & categories."
808
  msgstr ""
809
 
810
+ #: classes/Admin/Settings.php:334
811
  msgid "Disable Popup Maker caching"
812
  msgstr ""
813
 
814
+ #: classes/Admin/Settings.php:340
815
  msgid "Don't Load Google Fonts"
816
  msgstr ""
817
 
818
+ #: classes/Admin/Settings.php:341
819
  msgid "Check this disable loading of google fonts, useful if the fonts you chose are already loaded with your theme."
820
  msgstr ""
821
 
822
+ #: classes/Admin/Settings.php:345
823
  msgid "Don't load Popup Maker core stylesheet."
824
  msgstr ""
825
 
826
+ #: classes/Admin/Settings.php:346
827
  msgid "Check this if you have copied the Popup Maker core styles to your own stylesheet or are using custom styles."
828
  msgstr ""
829
 
830
+ #: classes/Admin/Settings.php:350
831
  msgid "Don't load popup theme styles to the head."
832
  msgstr ""
833
 
834
+ #: classes/Admin/Settings.php:351
835
  msgid "Check this if you have copied the popup theme styles to your own stylesheet or are using custom styles."
836
  msgstr ""
837
 
838
+ #: classes/Admin/Settings.php:408
839
  msgid "Popup Maker Settings"
840
  msgstr ""
841
 
842
+ #: classes/Admin/Settings.php:467
843
  msgid "Subscriptions"
844
  msgstr ""
845
 
846
+ #: classes/Admin/Settings.php:468, includes/admin/admin-setup.php:23, includes/admin/extensions/extensions-page.php:26
847
  msgid "Extensions"
848
  msgstr ""
849
 
850
+ #: classes/Admin/Settings.php:469, classes/Admin/Settings.php:498
851
  msgid "Licenses"
852
  msgstr ""
853
 
854
+ #: classes/Admin/Settings.php:470, classes/Admin/Settings.php:501
855
  msgid "Misc"
856
  msgstr ""
857
 
858
+ #: classes/Admin/Settings.php:495
859
  msgid "Extension Settings"
860
  msgstr ""
861
 
862
+ #: classes/Admin/Settings.php:502
863
  msgid "Assets"
864
  msgstr ""
865
 
popup-maker.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=plugin-uri
5
  * Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
6
  * Author: WP Popup Maker
7
- * Version: 1.7.3
8
  * Author URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=author-uri
9
  * Text Domain: popup-maker
10
  *
@@ -93,7 +93,7 @@ class Popup_Maker {
93
  /**
94
  * @var string Plugin Version
95
  */
96
- public static $VER = '1.7.3';
97
 
98
  /**
99
  * @var int DB Version
4
  * Plugin URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=plugin-uri
5
  * Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
6
  * Author: WP Popup Maker
7
+ * Version: 1.7.5
8
  * Author URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=author-uri
9
  * Text Domain: popup-maker
10
  *
93
  /**
94
  * @var string Plugin Version
95
  */
96
+ public static $VER = '1.7.5';
97
 
98
  /**
99
  * @var int DB Version
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link:
6
  Tags: marketing, popup, popups, optin, advertising, conversion, responsive popups, promotion, popover, pop-up, pop over, lightbox, conversion, modal
7
  Requires at least: 3.6
8
  Tested up to: 4.9.4
9
- Stable tag: 1.7.3
10
  License: GNU Version 3 or Any Later Version
11
 
12
  Everything you need to create unique user experiences. Insert forms & other content from your favorite plugins to create custom responsive popups.
@@ -101,6 +101,12 @@ There are several common causes for this which include:
101
 
102
  == Changelog ==
103
 
 
 
 
 
 
 
104
  = v1.7.3 - 03/12/2017 =
105
  * Fix: Error due to usage of __CLASS__ rather than $this.
106
  * Fix: Edge case where function returns can't be used inside empty().
6
  Tags: marketing, popup, popups, optin, advertising, conversion, responsive popups, promotion, popover, pop-up, pop over, lightbox, conversion, modal
7
  Requires at least: 3.6
8
  Tested up to: 4.9.4
9
+ Stable tag: 1.7.5
10
  License: GNU Version 3 or Any Later Version
11
 
12
  Everything you need to create unique user experiences. Insert forms & other content from your favorite plugins to create custom responsive popups.
101
 
102
  == Changelog ==
103
 
104
+ = v1.7.5 - 03/12/2017 =
105
+ * Fix: Sticky Popup Maker settings checkboxes that wouldn't uncheck after save.
106
+
107
+ = v1.7.4 - 03/12/2017 =
108
+ * Fix: Invalid method declaration error introduced by v1.7.2 patch to Shortcode core class.
109
+
110
  = v1.7.3 - 03/12/2017 =
111
  * Fix: Error due to usage of __CLASS__ rather than $this.
112
  * Fix: Edge case where function returns can't be used inside empty().