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

Version Description

  • Fixed bug that caused people to have to define two constants to set the OptinMonster license key in config files.
Download this release

Release Info

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

Code changes from version 1.1.5.5 to 1.1.5.6

OMAPI/Review.php CHANGED
@@ -390,6 +390,11 @@ class OMAPI_Review {
390
  return;
391
  }
392
 
 
 
 
 
 
393
  // Get array list of dismissed pointers for current user and convert it to array
394
  $dismissed_pointers = explode( ',', get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );
395
 
390
  return;
391
  }
392
 
393
+ // If no API credentials have been entered, hide the notice.
394
+ if ( ! $this->base->get_api_credentials() ) {
395
+ return;
396
+ }
397
+
398
  // Get array list of dismissed pointers for current user and convert it to array
399
  $dismissed_pointers = explode( ',', get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );
400
 
OMAPI/Validate.php CHANGED
@@ -154,8 +154,10 @@ class OMAPI_Validate {
154
  $option = $this->base->get_option();
155
  if ( isset( $option['is_invalid'] ) && $option['is_invalid'] ) {
156
  if ( ! ( isset($_GET['page'] ) && $_GET['page'] == 'optin-monster-api-settings') && ! ( isset($_GET['page'] ) && $_GET['page'] == 'optin-monster-api-welcome') ){
157
- echo '<div class="error"><p>' . __( 'There was an error verifying your OptinMonster API credentials. They are either missing or they are no longer valid.', 'optin-monster-api' ) . '</p>';
158
- echo '<p><a href="' . esc_url_raw( admin_url( 'admin.php?page=optin-monster-api-settings' ) ) . '" class="button button-primary button-large omapi-new-optin" title="View API Settings">View API Settings</a></p></div>';
 
 
159
  }
160
  } elseif ( isset( $option['is_disabled'] ) && $option['is_disabled'] ) {
161
  echo '<div class="error"><p>' . __( 'The subscription to this OptinMonster account has been disabled, likely due to a refund or other administrator action. Please contact OptinMonster support to resolve this issue.', 'optin-monster-api' ) . '</p>';
154
  $option = $this->base->get_option();
155
  if ( isset( $option['is_invalid'] ) && $option['is_invalid'] ) {
156
  if ( ! ( isset($_GET['page'] ) && $_GET['page'] == 'optin-monster-api-settings') && ! ( isset($_GET['page'] ) && $_GET['page'] == 'optin-monster-api-welcome') ){
157
+ if ( ! $this->base->menu->has_trial_link() ) {
158
+ echo '<div class="error"><p>' . __( 'There was an error verifying your OptinMonster API credentials. They are either missing or they are no longer valid.', 'optin-monster-api' ) . '</p>';
159
+ echo '<p><a href="' . esc_url_raw( admin_url( 'admin.php?page=optin-monster-api-settings' ) ) . '" class="button button-primary button-large omapi-new-optin" title="View API Settings">View API Settings</a></p></div>';
160
+ }
161
  }
162
  } elseif ( isset( $option['is_disabled'] ) && $option['is_disabled'] ) {
163
  echo '<div class="error"><p>' . __( 'The subscription to this OptinMonster account has been disabled, likely due to a refund or other administrator action. Please contact OptinMonster support to resolve this issue.', 'optin-monster-api' ) . '</p>';
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.5
9
  * Text Domain: optin-monster-api
10
  * Domain Path: languages
11
  *
@@ -309,7 +309,7 @@ class OMAPI {
309
 
310
  // Attempt to grab the API key and API user.
311
  if ( empty( $option['api']['key'] ) ) {
312
- if ( defined( 'OPTINMONSTER_API_KEY' ) ) {
313
  $key = OPTINMONSTER_API_LICENSE_KEY;
314
  }
315
  } else {
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
  *
309
 
310
  // Attempt to grab the API key and API user.
311
  if ( empty( $option['api']['key'] ) ) {
312
+ if ( defined( 'OPTINMONSTER_API_LICENSE_KEY' ) ) {
313
  $key = OPTINMONSTER_API_LICENSE_KEY;
314
  }
315
  } else {
readme.txt CHANGED
@@ -151,6 +151,9 @@ OptinMonster is the <a href="http://optinmonster.com" rel="friend" title="OptinM
151
 
152
  == Changelog ==
153
 
 
 
 
154
  = 1.1.5.5 =
155
  * Fixed bug that redirected people already using the plugin to the Welcome screen on update.
156
 
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
+
157
  = 1.1.5.5 =
158
  * Fixed bug that redirected people already using the plugin to the Welcome screen on update.
159