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

Version Description

Download this release

Release Info

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

Code changes from version 1.10.0 to 1.10.1

CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
  ### Unreleased Changes
2
 
3
- ### v1.10.0 - TBD
 
 
 
 
 
4
  * Feature: Display presets for top bar, bottom right slide-ins, full-screen popups & bottom left notifications to make it simple to get common setups done much quicker
5
  * Feature: Popup Trigger inline text format for the block editor.
6
  * Feature: Turn any block in Gutenberg block editor into a popup trigger.
1
  ### Unreleased Changes
2
 
3
+ ### v1.10.1 - 04/21/2020
4
+ * Fix: Typo in filter name caused extra p tags.
5
+ * Fix: Add wp version check to prevent calling block functions on older versions or classicpress.
6
+ * Fix: Font Awesome support now works for v4 fonts.
7
+
8
+ ### v1.10.0 - 04/20/2020
9
  * Feature: Display presets for top bar, bottom right slide-ins, full-screen popups & bottom left notifications to make it simple to get common setups done much quicker
10
  * Feature: Popup Trigger inline text format for the block editor.
11
  * Feature: Turn any block in Gutenberg block editor into a popup trigger.
classes/Site.php CHANGED
@@ -19,6 +19,8 @@ class PUM_Site {
19
  * Hook core filters into `pum_popup_content`.
20
  */
21
  public static function add_core_content_filters() {
 
 
22
  /**
23
  * Copied from wp-includes/class-wp-embed.php:32:40
24
  *
@@ -47,7 +49,9 @@ class PUM_Site {
47
  * @since 1.10.0
48
  * @sinceWP 5.4
49
  */
50
- add_filter( 'pum_popup_content', [ __CLASS__, 'do_blocks' ], 9 );
 
 
51
  add_filter( 'pum_popup_content', 'wptexturize' );
52
  add_filter( 'pum_popup_content', 'convert_smilies', 20 );
53
  add_filter( 'pum_popup_content', 'wpautop' );
@@ -70,7 +74,8 @@ class PUM_Site {
70
  /**
71
  * Parses dynamic blocks out of `post_content` and re-renders them.
72
  *
73
- * @since 5.0.0
 
74
  *
75
  * @param string $content Post content.
76
  * @return string Updated post content.
@@ -94,21 +99,22 @@ class PUM_Site {
94
  }
95
 
96
  /**
97
- * If do_blocks() needs to remove wpautop() from the `the_content` filter, this re-adds it afterwards,
98
- * for subsequent `the_content` usage.
99
  *
100
  * @access private
101
  *
102
- * @since 5.0.0
 
103
  *
104
  * @param string $content The post content running through this filter.
105
  * @return string The unmodified content.
106
  */
107
  public static function _restore_wpautop_hook( $content ) {
108
- $current_priority = has_filter( 'the_content', [ __CLASS__, '_restore_wpautop_hook' ] );
109
 
110
- add_filter( 'the_content', 'wpautop', $current_priority - 1 );
111
- remove_filter( 'the_content', [ __CLASS__, '_restore_wpautop_hook' ], $current_priority );
112
 
113
  return $content;
114
  }
19
  * Hook core filters into `pum_popup_content`.
20
  */
21
  public static function add_core_content_filters() {
22
+ global $wp_version;
23
+
24
  /**
25
  * Copied from wp-includes/class-wp-embed.php:32:40
26
  *
49
  * @since 1.10.0
50
  * @sinceWP 5.4
51
  */
52
+ if ( version_compare( $wp_version, '5.0.0', '>=' ) ) {
53
+ add_filter( 'pum_popup_content', [ __CLASS__, 'do_blocks' ], 9 );
54
+ }
55
  add_filter( 'pum_popup_content', 'wptexturize' );
56
  add_filter( 'pum_popup_content', 'convert_smilies', 20 );
57
  add_filter( 'pum_popup_content', 'wpautop' );
74
  /**
75
  * Parses dynamic blocks out of `post_content` and re-renders them.
76
  *
77
+ * @since 1.10.0
78
+ * @sinceWP 5.0.0
79
  *
80
  * @param string $content Post content.
81
  * @return string Updated post content.
99
  }
100
 
101
  /**
102
+ * If do_blocks() needs to remove wpautop() from the `pum_popup_content` filter, this re-adds it afterwards,
103
+ * for subsequent `pum_popup_content` usage.
104
  *
105
  * @access private
106
  *
107
+ * @since 1.10.0
108
+ * @sinceWP 5.0.0
109
  *
110
  * @param string $content The post content running through this filter.
111
  * @return string The unmodified content.
112
  */
113
  public static function _restore_wpautop_hook( $content ) {
114
+ $current_priority = has_filter( 'pum_popup_content', [ __CLASS__, '_restore_wpautop_hook' ] );
115
 
116
+ add_filter( 'pum_popup_content', 'wpautop', $current_priority - 1 );
117
+ remove_filter( 'pum_popup_content', [ __CLASS__, '_restore_wpautop_hook' ], $current_priority );
118
 
119
  return $content;
120
  }
includes/functions/popups/template.php CHANGED
@@ -89,7 +89,7 @@ function pum_popup_close_text( $popup_id = null ) {
89
  $close_text = $popup->close_text();
90
 
91
  // If the close text is a font awesome icon (E.g. "fas fa-camera"), add the icon instead of the text.
92
- if ( preg_match( "/^fa[srldb]\s.+/i", $close_text ) ) {
93
  echo '<i class="' . esc_attr( $close_text ) . '"></i>';
94
  } else {
95
  echo esc_html( $close_text );
89
  $close_text = $popup->close_text();
90
 
91
  // If the close text is a font awesome icon (E.g. "fas fa-camera"), add the icon instead of the text.
92
+ if ( preg_match( "/^fa[srldb]?\s.+/i", $close_text ) ) {
93
  echo '<i class="' . esc_attr( $close_text ) . '"></i>';
94
  } else {
95
  echo esc_html( $close_text );
popup-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Popup Maker
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
- * Version: 1.10.0
7
  * Author: Popup Maker
8
  * Author URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=author-uri
9
  * License: GPL2 or later
@@ -93,7 +93,7 @@ class Popup_Maker {
93
  /**
94
  * @var string Plugin Version
95
  */
96
- public static $VER = '1.10.0';
97
 
98
  /**
99
  * @var int DB Version
3
  * Plugin Name: Popup Maker
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
+ * Version: 1.10.1
7
  * Author: Popup Maker
8
  * Author URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=author-uri
9
  * License: GPL2 or later
93
  /**
94
  * @var string Plugin Version
95
  */
96
+ public static $VER = '1.10.1';
97
 
98
  /**
99
  * @var int DB Version
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tags: marketing, popup, popups, optin, advertising, conversion, responsive popu
7
  Requires at least: 4.1
8
  Tested up to: 5.4
9
  Requires PHP: 5.6
10
- Stable tag: 1.10.0
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -125,6 +125,11 @@ There are several common causes for this, check [this guide for help](https://do
125
 
126
  View our [complete changelog](https://github.com/PopupMaker/Popup-Maker/blob/master/CHANGELOG.md) for up-to-date information on what has been going on with the development of Popup Maker.
127
 
 
 
 
 
 
128
  = v1.10.0 - 04/20/2020 =
129
  * Feature: Display presets for top bar, bottom right slide-ins, full-screen popups & bottom left notifications to make it simple to get common setups done much quicker
130
  * Feature: Popup Trigger inline text format for the block editor.
7
  Requires at least: 4.1
8
  Tested up to: 5.4
9
  Requires PHP: 5.6
10
+ Stable tag: 1.10.1
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
125
 
126
  View our [complete changelog](https://github.com/PopupMaker/Popup-Maker/blob/master/CHANGELOG.md) for up-to-date information on what has been going on with the development of Popup Maker.
127
 
128
+ = v1.10.1 - 04/21/2020 =
129
+ * Fix: Typo in filter name caused extra p tags.
130
+ * Fix: Add wp version check to prevent calling block functions on older versions or classicpress.
131
+ * Fix: Font Awesome support now works for v4 fonts.
132
+
133
  = v1.10.0 - 04/20/2020 =
134
  * Feature: Display presets for top bar, bottom right slide-ins, full-screen popups & bottom left notifications to make it simple to get common setups done much quicker
135
  * Feature: Popup Trigger inline text format for the block editor.