Popups by OptinMonster – Best WordPress Lead Generation Plugin - Version 1.1.5.7

Version Description

  • Improved checks for when to output and localize the OptinMonster API script.
Download this release

Release Info

Developer griffinjt
Plugin Icon 128x128 Popups by OptinMonster – Best WordPress Lead Generation Plugin
Version 1.1.5.7
Comparing to
See all releases

Code changes from version 1.1.5.6 to 1.1.5.7

Files changed (3) hide show
  1. OMAPI/Output.php +10 -0
  2. optin-monster-wp-api.php +2 -2
  3. readme.txt +14 -2
OMAPI/Output.php CHANGED
@@ -82,6 +82,11 @@ class OMAPI_Output {
82
  // Set our object.
83
  $this->set();
84
 
 
 
 
 
 
85
  // Load actions and filters.
86
  add_action( 'wp_enqueue_scripts', array( $this, 'api_script' ) );
87
  add_action( 'wp_footer', array( $this, 'localize' ), 9999 );
@@ -752,6 +757,11 @@ class OMAPI_Output {
752
  */
753
  public function localize() {
754
 
 
 
 
 
 
755
  // If already localized, do nothing.
756
  if ( $this->localized ) {
757
  return;
82
  // Set our object.
83
  $this->set();
84
 
85
+ // If no credentials have been provided, do nothing.
86
+ if ( ! $this->base->get_api_credentials() ) {
87
+ return;
88
+ }
89
+
90
  // Load actions and filters.
91
  add_action( 'wp_enqueue_scripts', array( $this, 'api_script' ) );
92
  add_action( 'wp_footer', array( $this, 'localize' ), 9999 );
757
  */
758
  public function localize() {
759
 
760
+ // If no slugs have been set, do nothing.
761
+ if ( empty( $this->slugs ) ) {
762
+ return;
763
+ }
764
+
765
  // If already localized, do nothing.
766
  if ( $this->localized ) {
767
  return;
optin-monster-wp-api.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: OptinMonster API plugin to connect your WordPress site to your OptinMonster forms.
6
  * Author: Thomas Griffin
7
  * Author URI: https://thomasgriffin.io
8
- * Version: 1.1.5.6
9
  * Text Domain: optin-monster-api
10
  * Domain Path: languages
11
  *
@@ -60,7 +60,7 @@ class OMAPI {
60
  *
61
  * @var string
62
  */
63
- public $version = '1.1.5.5';
64
 
65
  /**
66
  * The name of the plugin.
5
  * Description: OptinMonster API plugin to connect your WordPress site to your OptinMonster forms.
6
  * Author: Thomas Griffin
7
  * Author URI: https://thomasgriffin.io
8
+ * Version: 1.1.5.7
9
  * Text Domain: optin-monster-api
10
  * Domain Path: languages
11
  *
60
  *
61
  * @var string
62
  */
63
+ public $version = '1.1.5.7';
64
 
65
  /**
66
  * The name of the plugin.
readme.txt CHANGED
@@ -117,12 +117,21 @@ This plugin is created by <a href="https://thomasgriffin.io" rel="friend" title=
117
 
118
  If you like this plugin, then consider checking out our other projects:
119
 
120
- * <a href="http://soliloquywp.com/" rel="friend" title="Soliloquy">Soliloquy</a> - Best WordPress Slider Plugin
121
  * <a href="http://enviragallery.com/" rel="friend" title="Envira Gallery">Envira Gallery</a> - Responsive WordPress Gallery Plugin
122
- * <a href="http://www.themelab.com/" rel="friend" title="ThemeLab">ThemeLab</a> - Premium WordPress Themes that Work
 
123
 
124
  Visit WPBeginner to learn from our <a href="http://www.wpbeginner.com/category/wp-tutorials/" rel="friend" title="WordPress Tutorials">WordPress Tutorials</a> and find out about other <a href="http://www.wpbeginner.com/category/plugins/" rel="friend" title="Best WordPress Plugins">best WordPress plugins</a>.
125
 
 
 
 
 
 
 
 
 
 
126
 
127
  == Installation ==
128
 
@@ -151,6 +160,9 @@ OptinMonster is the <a href="http://optinmonster.com" rel="friend" title="OptinM
151
 
152
  == Changelog ==
153
 
 
 
 
154
  = 1.1.5.6 =
155
  * Fixed bug that caused people to have to define two constants to set the OptinMonster license key in config files.
156
 
117
 
118
  If you like this plugin, then consider checking out our other projects:
119
 
 
120
  * <a href="http://enviragallery.com/" rel="friend" title="Envira Gallery">Envira Gallery</a> - Responsive WordPress Gallery Plugin
121
+ * <a href="https://wpforms.com/" rel="friend" title="WPForms">WPForms</a> - Best WordPress Contact Form Plugin
122
+ * <a href="https://www.monsterinsights.com/" rel="friend" title="MonsterInsights">MonsterInsights</a> - Best Google Analytics Plugin for WordPress
123
 
124
  Visit WPBeginner to learn from our <a href="http://www.wpbeginner.com/category/wp-tutorials/" rel="friend" title="WordPress Tutorials">WordPress Tutorials</a> and find out about other <a href="http://www.wpbeginner.com/category/plugins/" rel="friend" title="Best WordPress Plugins">best WordPress plugins</a>.
125
 
126
+ = Press & Brand Assets =
127
+
128
+ If you are interested in writing about OptinMonster, then we have have prepared a <a href="http://optinmonster.com/press/" rel="friend" title="OptinMonster Press Page">Press & Brand Assets page</a> where you can download our logo, screenshots, and other relevant assets.
129
+
130
+ When mentioning OptinMonster please know that OptinMonster is one word with a Capital O and M.
131
+
132
+ Please avoid using any variations like: Optinmonster, optinmonster, or worst Optin monster.
133
+
134
+ OptinMonster® and Exit-Intent® are registered trademarks of Retyp, LLC.
135
 
136
  == Installation ==
137
 
160
 
161
  == Changelog ==
162
 
163
+ = 1.1.5.7 =
164
+ * Improved checks for when to output and localize the OptinMonster API script.
165
+
166
  = 1.1.5.6 =
167
  * Fixed bug that caused people to have to define two constants to set the OptinMonster license key in config files.
168