From 79c1fb2c8f33f7d1a5b22e90982aefaaa45bfd98 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Fri, 20 Sep 2019 12:08:22 -0400 Subject: [PATCH] Fixed forced cookie pop-up when pop-up was off for site. --- index.php | 8 ++++---- readme.txt | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 49b6557..ccacc43 100755 --- 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 * @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() { diff --git a/readme.txt b/readme.txt index 51f3a74..a000eaa 100755 --- a/readme.txt +++ b/readme.txt @@ -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 -- 2.17.1