Version Description
- Fixed a bug that caused issues for non-admin users when the plugin was not yet connected to an OptinMonster account.
Download this release
Release Info
Developer | thebrandonallen |
Plugin | Popups by OptinMonster – Best WordPress Lead Generation Plugin |
Version | 1.9.15 |
Comparing to | |
See all releases |
Code changes from version 1.9.14 to 1.9.15
- CHANGELOG.md +3 -0
- OMAPI/Pointer.php +20 -0
- optin-monster-wp-api.php +2 -2
- readme.txt +4 -9
CHANGELOG.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
# Changelog
|
2 |
All notable changes to the OptinMonster plugin will be documented in this file.
|
3 |
|
|
|
|
|
|
|
4 |
### 1.9.14
|
5 |
* Fixed a bug that occasionally prevented changes in campaigns via the OptinMonster App to not properly sync to the plugin, due to cached responses.
|
6 |
|
1 |
# Changelog
|
2 |
All notable changes to the OptinMonster plugin will be documented in this file.
|
3 |
|
4 |
+
### 1.9.15
|
5 |
+
* Fixed a bug that caused issues for non-admin users when the plugin was not yet connected to an OptinMonster account.
|
6 |
+
|
7 |
### 1.9.14
|
8 |
* Fixed a bug that occasionally prevented changes in campaigns via the OptinMonster App to not properly sync to the plugin, due to cached responses.
|
9 |
|
OMAPI/Pointer.php
CHANGED
@@ -32,6 +32,26 @@ class OMAPI_Pointer {
|
|
32 |
* Class Constructor
|
33 |
*/
|
34 |
public function __construct() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
$this->set();
|
36 |
|
37 |
add_action( 'admin_enqueue_scripts', array( $this, 'load_pointer' ) );
|
32 |
* Class Constructor
|
33 |
*/
|
34 |
public function __construct() {
|
35 |
+
// If we are not in admin or admin ajax, return.
|
36 |
+
if ( ! is_admin() ) {
|
37 |
+
return;
|
38 |
+
}
|
39 |
+
|
40 |
+
// If user is in admin ajax or doing cron, return.
|
41 |
+
if ( ( defined( 'DOING_AJAX' ) && DOING_AJAX ) || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
|
42 |
+
return;
|
43 |
+
}
|
44 |
+
|
45 |
+
// If user is not logged in, return.
|
46 |
+
if ( ! is_user_logged_in() ) {
|
47 |
+
return;
|
48 |
+
}
|
49 |
+
|
50 |
+
// If user cannot manage_options, return.
|
51 |
+
if ( ! current_user_can( 'manage_options' ) ) {
|
52 |
+
return;
|
53 |
+
}
|
54 |
+
|
55 |
$this->set();
|
56 |
|
57 |
add_action( 'admin_enqueue_scripts', array( $this, 'load_pointer' ) );
|
optin-monster-wp-api.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: OptinMonster is the best WordPress popup plugin that helps you grow your email list and sales with email popups, exit intent popups, floating bars and more!
|
6 |
* Author: OptinMonster Team
|
7 |
* Author URI: https://optinmonster.com
|
8 |
-
* Version: 1.9.
|
9 |
* Text Domain: optin-monster-api
|
10 |
* Domain Path: languages
|
11 |
* WC requires at least: 3.2.0
|
@@ -62,7 +62,7 @@ class OMAPI {
|
|
62 |
*
|
63 |
* @var string
|
64 |
*/
|
65 |
-
public $version = '1.9.
|
66 |
|
67 |
/**
|
68 |
* The name of the plugin.
|
5 |
* Description: OptinMonster is the best WordPress popup plugin that helps you grow your email list and sales with email popups, exit intent popups, floating bars and more!
|
6 |
* Author: OptinMonster Team
|
7 |
* Author URI: https://optinmonster.com
|
8 |
+
* Version: 1.9.15
|
9 |
* Text Domain: optin-monster-api
|
10 |
* Domain Path: languages
|
11 |
* WC requires at least: 3.2.0
|
62 |
*
|
63 |
* @var string
|
64 |
*/
|
65 |
+
public $version = '1.9.15';
|
66 |
|
67 |
/**
|
68 |
* The name of the plugin.
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: marketing, popups, popup builder, newsletter, conversion, optin forms, for
|
|
4 |
Requires at least: 4.7.0
|
5 |
Tested up to: 5.5
|
6 |
Requires PHP: 5.3
|
7 |
-
Stable tag: 1.9.
|
8 |
License: GNU General Public License v2.0 or later
|
9 |
|
10 |
Create popups, opt-in forms, & floating bars to get more email newsletter subscribers, leads, and increase sales conversion - #1 marketing popup plugin.
|
@@ -471,6 +471,9 @@ Syed Balkhi
|
|
471 |
|
472 |
**Most Recent Changes:**
|
473 |
|
|
|
|
|
|
|
474 |
= 1.9.14 =
|
475 |
* Fixed a bug that occasionally prevented changes in campaigns via the OptinMonster App to not properly sync to the plugin, due to cached responses.
|
476 |
|
@@ -515,12 +518,4 @@ Syed Balkhi
|
|
515 |
* Fix campaign shortcode suggestion in admin being incorrect.
|
516 |
* Full security audit to patch any potential issues.
|
517 |
|
518 |
-
= 1.9.8 =
|
519 |
-
* Fix compatibility with AMP.
|
520 |
-
* Update compatibility with popular caching plugins.
|
521 |
-
* Update to make all strings translatable.
|
522 |
-
* Fix bug where phone numbers wouldn't save when using MailPoet.
|
523 |
-
* Remove old jQuery dependencies.
|
524 |
-
* Update internal notices to be more friendly with other plugins.
|
525 |
-
|
526 |
**[View entire changelog](https://plugins.svn.wordpress.org/optinmonster/trunk/CHANGELOG.md)**
|
4 |
Requires at least: 4.7.0
|
5 |
Tested up to: 5.5
|
6 |
Requires PHP: 5.3
|
7 |
+
Stable tag: 1.9.15
|
8 |
License: GNU General Public License v2.0 or later
|
9 |
|
10 |
Create popups, opt-in forms, & floating bars to get more email newsletter subscribers, leads, and increase sales conversion - #1 marketing popup plugin.
|
471 |
|
472 |
**Most Recent Changes:**
|
473 |
|
474 |
+
= 1.9.15 =
|
475 |
+
* Fixed a bug that caused issues for non-admin users when the plugin was not yet connected to an OptinMonster account.
|
476 |
+
|
477 |
= 1.9.14 =
|
478 |
* Fixed a bug that occasionally prevented changes in campaigns via the OptinMonster App to not properly sync to the plugin, due to cached responses.
|
479 |
|
518 |
* Fix campaign shortcode suggestion in admin being incorrect.
|
519 |
* Full security audit to patch any potential issues.
|
520 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
521 |
**[View entire changelog](https://plugins.svn.wordpress.org/optinmonster/trunk/CHANGELOG.md)**
|