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

Version Description

  • Fixed a bug where category settings may not properly display.
Download this release

Release Info

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

Code changes from version 1.9.14 to 1.9.16

Files changed (5) hide show
  1. CHANGELOG.md +3 -0
  2. OMAPI/Menu.php +1 -0
  3. OMAPI/Pointer.php +20 -0
  4. optin-monster-wp-api.php +3 -3
  5. readme.txt +7 -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/Menu.php CHANGED
@@ -731,6 +731,7 @@ class OMAPI_Menu {
731
  $categories = get_categories();
732
  if ( $categories ) {
733
  ob_start();
 
734
  wp_category_checklist( 0, 0, (array) $value, false, null, true );
735
  $cats = ob_get_clean();
736
  $ret = $this->get_custom_field( 'categories', $cats, esc_html__( 'Load campaign on post categories:', 'optin-monster-api' ) );
731
  $categories = get_categories();
732
  if ( $categories ) {
733
  ob_start();
734
+ $value = ! empty( $value ) ? array_map( 'intval', (array) $value ) : array();
735
  wp_category_checklist( 0, 0, (array) $value, false, null, true );
736
  $cats = ob_get_clean();
737
  $ret = $this->get_custom_field( 'categories', $cats, esc_html__( 'Load campaign on post categories:', 'optin-monster-api' ) );
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,11 +5,11 @@
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.14
9
  * Text Domain: optin-monster-api
10
  * Domain Path: languages
11
  * WC requires at least: 3.2.0
12
- * WC tested up to: 4.4.1
13
  *
14
  * OptinMonster is free software: you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
@@ -62,7 +62,7 @@ class OMAPI {
62
  *
63
  * @var string
64
  */
65
- public $version = '1.9.14';
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.16
9
  * Text Domain: optin-monster-api
10
  * Domain Path: languages
11
  * WC requires at least: 3.2.0
12
+ * WC tested up to: 4.5.2
13
  *
14
  * OptinMonster is free software: you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
62
  *
63
  * @var string
64
  */
65
+ public $version = '1.9.16';
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.14
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,12 @@ 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 +521,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.16
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.16 =
475
+ * Fixed a bug where category settings may not properly display.
476
+
477
+ = 1.9.15 =
478
+ * Fixed a bug that caused issues for non-admin users when the plugin was not yet connected to an OptinMonster account.
479
+
480
  = 1.9.14 =
481
  * Fixed a bug that occasionally prevented changes in campaigns via the OptinMonster App to not properly sync to the plugin, due to cached responses.
482
 
521
  * Fix campaign shortcode suggestion in admin being incorrect.
522
  * Full security audit to patch any potential issues.
523
 
 
 
 
 
 
 
 
 
524
  **[View entire changelog](https://plugins.svn.wordpress.org/optinmonster/trunk/CHANGELOG.md)**