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

Version Description

Download this release

Release Info

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

Code changes from version 1.3.4 to 1.3.5

includes/class-popmake-fields.php CHANGED
@@ -315,7 +315,7 @@ class Popmake_Popup_Fields extends Popmake_Fields {
315
  'unit' => __( 'ms', 'popup-maker' ),
316
  ),
317
  'cookie_trigger' => array(
318
- 'label' => __( 'Delay', 'popup-maker' ),
319
  'description' => __( 'When do you want to create the cookie.', 'popup-maker' ),
320
  'type' => 'select',
321
  'std' => 'close',
315
  'unit' => __( 'ms', 'popup-maker' ),
316
  ),
317
  'cookie_trigger' => array(
318
+ 'label' => __( 'Cookie Trigger', 'popup-maker' ),
319
  'description' => __( 'When do you want to create the cookie.', 'popup-maker' ),
320
  'type' => 'select',
321
  'std' => 'close',
includes/load-popups.php CHANGED
@@ -26,10 +26,10 @@ add_action( 'plugins_loaded', 'popmake_init_popups' );
26
  function popmake_load_popup( int $id ) {
27
  global $popmake_loaded_popups, $popmake_loaded_popup_ids, $popmake_enqueued_popups;
28
  if ( did_action( 'wp_head' ) && ! in_array( $id, $popmake_loaded_popup_ids ) ) {
29
- $args1 = array_merge( $base_args, array(
30
  'post_type' => 'popup',
31
  'p' => $id
32
- ) );
33
  $query = new WP_Query( $args1 );
34
  if ( $query->have_posts() ) {
35
  while ( $query->have_posts() ) : $query->next_post();
26
  function popmake_load_popup( int $id ) {
27
  global $popmake_loaded_popups, $popmake_loaded_popup_ids, $popmake_enqueued_popups;
28
  if ( did_action( 'wp_head' ) && ! in_array( $id, $popmake_loaded_popup_ids ) ) {
29
+ $args1 = array(
30
  'post_type' => 'popup',
31
  'p' => $id
32
+ );
33
  $query = new WP_Query( $args1 );
34
  if ( $query->have_posts() ) {
35
  while ( $query->have_posts() ) : $query->next_post();
includes/popup-functions.php CHANGED
@@ -188,7 +188,8 @@ function popmake_get_popup_meta( $group, $popup_id = null, $key = null, $default
188
  $values = get_post_meta( $popup_id, "popup_{$group}", true );
189
 
190
  if ( ! $values ) {
191
- $values = apply_filters( "popmake_popup_{$group}_defaults", array() );
 
192
  } else {
193
  $values = array_merge( popmake_get_popup_meta_group( $group, $popup_id ), $values );
194
  }
@@ -232,6 +233,11 @@ function popmake_get_popup_meta_group( $group, $popup_id = null, $key = null, $d
232
  }
233
 
234
  $post_meta = get_post_custom( $popup_id );
 
 
 
 
 
235
  $default_check_key = 'popup_defaults_set';
236
  if ( ! in_array( $group, array( 'auto_open', 'close', 'display', 'targeting_condition' ) ) ) {
237
  $default_check_key = "popup_{$group}_defaults_set";
188
  $values = get_post_meta( $popup_id, "popup_{$group}", true );
189
 
190
  if ( ! $values ) {
191
+ $defaults = apply_filters( "popmake_popup_{$group}_defaults", array() );
192
+ $values = array_merge( $defaults, popmake_get_popup_meta_group( $group, $popup_id ) );
193
  } else {
194
  $values = array_merge( popmake_get_popup_meta_group( $group, $popup_id ), $values );
195
  }
233
  }
234
 
235
  $post_meta = get_post_custom( $popup_id );
236
+
237
+ if ( ! is_array( $post_meta ) ) {
238
+ $post_meta = array();
239
+ }
240
+
241
  $default_check_key = 'popup_defaults_set';
242
  if ( ! in_array( $group, array( 'auto_open', 'close', 'display', 'targeting_condition' ) ) ) {
243
  $default_check_key = "popup_{$group}_defaults_set";
includes/scripts.php CHANGED
@@ -214,8 +214,8 @@ add_action( 'wp_head', 'popmake_script_loading_enabled' );
214
 
215
  function popmake_enqueue_scripts( $popup_id = null ) {
216
  $scripts_needed = apply_filters( 'popmake_enqueue_scripts', array(
217
- 'popup-maker-site',
218
- 'popup-maker-easy-modal-importer-site'
219
  ), $popup_id );
220
  foreach ( $scripts_needed as $script ) {
221
  if ( wp_script_is( $script, 'registered' ) ) {
@@ -224,8 +224,8 @@ function popmake_enqueue_scripts( $popup_id = null ) {
224
  }
225
 
226
  $styles_needed = apply_filters( 'popmake_enqueue_styles', array(
227
- 'popup-maker-site',
228
- 'popup-maker-google-fonts'
229
  ), $popup_id );
230
  foreach ( $styles_needed as $style ) {
231
  if ( wp_style_is( $style, 'registered' ) ) {
214
 
215
  function popmake_enqueue_scripts( $popup_id = null ) {
216
  $scripts_needed = apply_filters( 'popmake_enqueue_scripts', array(
217
+ 'popup-maker' => 'popup-maker-site',
218
+ 'easy-modal-importer' => 'popup-maker-easy-modal-importer-site'
219
  ), $popup_id );
220
  foreach ( $scripts_needed as $script ) {
221
  if ( wp_script_is( $script, 'registered' ) ) {
224
  }
225
 
226
  $styles_needed = apply_filters( 'popmake_enqueue_styles', array(
227
+ 'popup-maker' => 'popup-maker-site',
228
+ 'google-fonts' => 'popup-maker-google-fonts'
229
  ), $popup_id );
230
  foreach ( $styles_needed as $style ) {
231
  if ( wp_style_is( $style, 'registered' ) ) {
popup-maker.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://wppopupmaker.com
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: Daniel Iser
7
- * Version: 1.3.4
8
  * Author URI: https://wppopupmaker.com
9
  * Text Domain: popup-maker
10
  *
@@ -144,7 +144,7 @@ if ( ! class_exists( 'Popup_Maker' ) ) :
144
  }
145
 
146
  if ( ! defined( 'POPMAKE_VERSION' ) ) {
147
- define( 'POPMAKE_VERSION', '1.3.4' );
148
  }
149
 
150
  if ( ! defined( 'POPMAKE_DB_VERSION' ) ) {
4
  * Plugin URI: https://wppopupmaker.com
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: Daniel Iser
7
+ * Version: 1.3.5
8
  * Author URI: https://wppopupmaker.com
9
  * Text Domain: popup-maker
10
  *
144
  }
145
 
146
  if ( ! defined( 'POPMAKE_VERSION' ) ) {
147
+ define( 'POPMAKE_VERSION', '1.3.5' );
148
  }
149
 
150
  if ( ! defined( 'POPMAKE_DB_VERSION' ) ) {
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link:
6
  Tags: age restriction, age verification, auto open, automatic popup, conversion, conversions, custom popup, dialog box, exit intent, fancy box, fancy popup, form modal, full page popup, full screen pop, full screen popup, marketing, modal, modals, onclick popup, optin popup, pop-up, pop-ups, popup, popup ads, popup advertising, popup box, popup form, popup message, popup window, popups, unblockable, wordpress popup
7
  Requires at least: 3.4
8
  Tested up to: 4.2.4
9
- Stable tag: 1.3.4
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The most versatile popup plugin for WordPress! Grow email subscriber lists, get more FB Likes, create login modals, content restriction & more.
@@ -103,6 +103,12 @@ There are several common causes for this which include:
103
 
104
  == Changelog ==
105
 
 
 
 
 
 
 
106
  = v1.3.4 - 8/12/2015 =
107
  * Fix: Added px to font-size & line-height.
108
 
6
  Tags: age restriction, age verification, auto open, automatic popup, conversion, conversions, custom popup, dialog box, exit intent, fancy box, fancy popup, form modal, full page popup, full screen pop, full screen popup, marketing, modal, modals, onclick popup, optin popup, pop-up, pop-ups, popup, popup ads, popup advertising, popup box, popup form, popup message, popup window, popups, unblockable, wordpress popup
7
  Requires at least: 3.4
8
  Tested up to: 4.2.4
9
+ Stable tag: 1.3.5
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The most versatile popup plugin for WordPress! Grow email subscriber lists, get more FB Likes, create login modals, content restriction & more.
103
 
104
  == Changelog ==
105
 
106
+ = v1.3.5 - 8/18/2015 =
107
+ * Tweak: Corrected missing keys for required script checks.
108
+ * Fix: Error message caused by non array value from get_post_custom.
109
+ * Fix: Removed missing variable.
110
+ * Fix: Text corrections.
111
+
112
  = v1.3.4 - 8/12/2015 =
113
  * Fix: Added px to font-size & line-height.
114