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

Version Description

  • Fixed a bug where taxonomy settings may not properly display.
  • Fixed an error that could occur when non-admins logged in.
Download this release

Release Info

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

Code changes from version 1.9.15 to 1.9.17

Files changed (5) hide show
  1. CHANGELOG.md +7 -0
  2. OMAPI/Menu.php +2 -1
  3. OMAPI/Review.php +19 -0
  4. optin-monster-wp-api.php +3 -3
  5. readme.txt +9 -2
CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
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
 
1
  # Changelog
2
  All notable changes to the OptinMonster plugin will be documented in this file.
3
 
4
+ ### 1.9.17
5
+ * Fixed a bug where taxonomy settings may not properly display.
6
+ * Fixed an error that could occur when non-admins logged in.
7
+
8
+ ### 1.9.16
9
+ * Fixed a bug where category settings may not properly display.
10
+
11
  ### 1.9.15
12
  * Fixed a bug that caused issues for non-admin users when the plugin was not yet connected to an OptinMonster account.
13
 
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' ) );
@@ -774,7 +775,7 @@ class OMAPI_Menu {
774
  if ( $terms ) {
775
  ob_start();
776
  $display = (array) $value;
777
- $display = isset( $display[ $taxonomy ] ) ? $display[ $taxonomy ] : array();
778
  $tax = get_taxonomy( $taxonomy );
779
  $args = array(
780
  'descendants_and_self' => 0,
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' ) );
775
  if ( $terms ) {
776
  ob_start();
777
  $display = (array) $value;
778
+ $display = isset( $display[ $taxonomy ] ) ? array_map( 'intval', (array) $display[ $taxonomy ] ) : array();
779
  $tax = get_taxonomy( $taxonomy );
780
  $args = array(
781
  'descendants_and_self' => 0,
OMAPI/Review.php CHANGED
@@ -53,6 +53,25 @@ class OMAPI_Review {
53
  * @since 1.1.4.5
54
  */
55
  public function __construct() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  // Set our object.
58
  $this->set();
53
  * @since 1.1.4.5
54
  */
55
  public function __construct() {
56
+ // If we are not in admin or admin ajax, return.
57
+ if ( ! is_admin() ) {
58
+ return;
59
+ }
60
+
61
+ // If user is in admin ajax or doing cron, return.
62
+ if ( ( defined( 'DOING_AJAX' ) && DOING_AJAX ) || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
63
+ return;
64
+ }
65
+
66
+ // If user is not logged in, return.
67
+ if ( ! is_user_logged_in() ) {
68
+ return;
69
+ }
70
+
71
+ // If user cannot manage_options, return.
72
+ if ( ! current_user_can( 'manage_options' ) ) {
73
+ return;
74
+ }
75
 
76
  // Set our object.
77
  $this->set();
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.15
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.15';
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.17
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.17';
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.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.
@@ -26,7 +26,7 @@ OptinMonster popups and newsletter opt-in forms are 100% mobile responsive, so y
26
  We understand the importance of speed when it comes SEO, marketing, and conversion optimization. This is why we made sure that OptinMonster popups and marketing tools are optimized for both web and server performance.
27
 
28
  > <strong>OptinMonster App</strong><br />
29
- > OptinMonster popups and marketing tools are part of the standalone OptinMonster app. You will need to create an OptinMonster account to access our popup builder, opt-in form builder, newsletter subscribers, and other powerful conversion tools. <a href="https://optinmonster.com/wp/?utm_source=orgplugin&utm_medium=link&utm_campaign=wpreadme" rel="friend" title="OptinMonster">Click here to purchase OptinMonster Pro now!</a>
30
 
31
  We took the pain out of creating highly personalized popup forms and made it easy. Here's why smart business owners, designers, and developers love OptinMonster marketing toolkit, and you will too!
32
 
@@ -471,6 +471,13 @@ Syed Balkhi
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
 
4
  Requires at least: 4.7.0
5
  Tested up to: 5.5
6
  Requires PHP: 5.3
7
+ Stable tag: 1.9.17
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.
26
  We understand the importance of speed when it comes SEO, marketing, and conversion optimization. This is why we made sure that OptinMonster popups and marketing tools are optimized for both web and server performance.
27
 
28
  > <strong>OptinMonster App</strong><br />
29
+ > OptinMonster is a SaaS service. OptinMonster popups and marketing tools are part of the standalone OptinMonster app. You will need to create an OptinMonster account to access our popup builder, opt-in form builder, newsletter subscribers, and other powerful conversion tools. <a href="https://optinmonster.com/wp/?utm_source=orgplugin&utm_medium=link&utm_campaign=wpreadme" rel="friend" title="OptinMonster">Click here to purchase OptinMonster Pro now!</a>
30
 
31
  We took the pain out of creating highly personalized popup forms and made it easy. Here's why smart business owners, designers, and developers love OptinMonster marketing toolkit, and you will too!
32
 
471
 
472
  **Most Recent Changes:**
473
 
474
+ = 1.9.17 =
475
+ * Fixed a bug where taxonomy settings may not properly display.
476
+ * Fixed an error that could occur when non-admins logged in.
477
+
478
+ = 1.9.16 =
479
+ * Fixed a bug where category settings may not properly display.
480
+
481
  = 1.9.15 =
482
  * Fixed a bug that caused issues for non-admin users when the plugin was not yet connected to an OptinMonster account.
483