Version Description
- Fixed bug that redirected people already using the plugin to the Welcome screen on update.
Download this release
Release Info
| Developer | griffinjt |
| Plugin | |
| Version | 1.1.5.5 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.5.4 to 1.1.5.5
- OMAPI/Welcome.php +6 -2
- optin-monster-wp-api.php +2 -2
- readme.txt +3 -0
OMAPI/Welcome.php
CHANGED
|
@@ -94,7 +94,7 @@ class OMAPI_Welcome {
|
|
| 94 |
// Make sure welcome page is always first page to view.
|
| 95 |
if ( 'toplevel_page_optin-monster-api-settings' === $screen->id ) {
|
| 96 |
$welcome = get_option( 'optin_monster_viewed_welcome', false );
|
| 97 |
-
if ( ! $welcome ) {
|
| 98 |
die( wp_redirect( 'admin.php?page=optin-monster-api-welcome' ) );
|
| 99 |
}
|
| 100 |
}
|
|
@@ -132,7 +132,11 @@ class OMAPI_Welcome {
|
|
| 132 |
//If this was not a bulk activate send them to the page
|
| 133 |
if(!isset($_GET['activate-multi']))
|
| 134 |
{
|
| 135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
}
|
| 137 |
|
| 138 |
}
|
| 94 |
// Make sure welcome page is always first page to view.
|
| 95 |
if ( 'toplevel_page_optin-monster-api-settings' === $screen->id ) {
|
| 96 |
$welcome = get_option( 'optin_monster_viewed_welcome', false );
|
| 97 |
+
if ( ! $welcome && ! $this->base->get_api_credentials() ) {
|
| 98 |
die( wp_redirect( 'admin.php?page=optin-monster-api-welcome' ) );
|
| 99 |
}
|
| 100 |
}
|
| 132 |
//If this was not a bulk activate send them to the page
|
| 133 |
if(!isset($_GET['activate-multi']))
|
| 134 |
{
|
| 135 |
+
// Only redirect if no trial is found.
|
| 136 |
+
$trial = $this->base->menu->has_trial_link();
|
| 137 |
+
if ( ! $trial ) {
|
| 138 |
+
wp_redirect('admin.php?page=optin-monster-api-welcome');
|
| 139 |
+
}
|
| 140 |
}
|
| 141 |
|
| 142 |
}
|
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.
|
| 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.
|
| 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.5
|
| 9 |
* Text Domain: optin-monster-api
|
| 10 |
* Domain Path: languages
|
| 11 |
*
|
| 60 |
*
|
| 61 |
* @var string
|
| 62 |
*/
|
| 63 |
+
public $version = '1.1.5.5';
|
| 64 |
|
| 65 |
/**
|
| 66 |
* The name of the plugin.
|
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.4 =
|
| 155 |
* Fixed bug that caused issues with viewing the Welcome screen.
|
| 156 |
|
| 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 |
+
|
| 157 |
= 1.1.5.4 =
|
| 158 |
* Fixed bug that caused issues with viewing the Welcome screen.
|
| 159 |
|
