Fixed forced cookie pop-up when pop-up was off for site.
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 20 Sep 2019 16:08:22 +0000 (12:08 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 20 Sep 2019 16:08:22 +0000 (12:08 -0400)
index.php
readme.txt

index 49b6557..ccacc43 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Bandwidth
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Website Bandwidth Display and Reporting
- * Version: 4.1.3
+ * Version: 4.1.4
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -19,7 +19,7 @@
  * @package glmServerStats
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 4.1.3
+ * @version 4.1.4
  */
 
 // Check that we're being called by WordPress.
@@ -28,7 +28,7 @@ if (!defined('ABSPATH')) {
     die();
 }
 
-define('GLM_SERVERSTATS_PLUGIN_VERSION', '4.1.3');
+define('GLM_SERVERSTATS_PLUGIN_VERSION', '4.1.4');
 
 define('GLM_SERVERSTATS_PLUGIN_DB_VERSION', '0.0.1');
 
@@ -169,7 +169,7 @@ function glmServerStatsScripts()
  */
 
 // If this is an admin request and the cookie pop-ups have been enabled - Popup test in scripting on page
-if ($websiteSettings['show_cookie_popup'] && !is_admin()) {
+if ((!empty($_REQUEST['force_cookie']) || $websiteSettings['show_cookie_popup']) && !is_admin()) {
 
     // Make sure that the jQuery scripts are included
     function enqueueJquery() {
index 51f3a74..a000eaa 100755 (executable)
@@ -5,7 +5,7 @@ Tags: Gaslight Media,Plugin,ServerStats
 Author: Gaslight Media
 Author URL: http://www.gaslightmedia.com
 Plugin URL: http://www.gaslightmedia.com
-Requires at least: 4.1.3
+Requires at least: 4.1.4
 Tested up to: 5.2.3
 Stable tag: 5.0.2
 License: GPLv2 or later
@@ -29,6 +29,9 @@ e.g.
 1. Activate the plugin through the 'Plugins' menu in WordPress
 
 == Changelog ==
+= 4.1.4 =
+* Fixed forced cookie pop-up not showing if cookie pop-up was off for site.
+
 = 4.1.3 =
 * Fixed errant class name causing Notifications to not work