Version Description
- 13-Mar-2020
- Fix : Site Health errors, caused by session_start.
Download this release
Release Info
Developer | amribrahim |
Plugin | Google Analytics |
Version | 3.2.1 |
Comparing to | |
See all releases |
Code changes from version 3.2.0 to 3.2.1
- core/wp.helper.functions.php +1 -4
- lara-google-analytics.php +3 -3
- readme.txt +6 -2
core/wp.helper.functions.php
CHANGED
@@ -24,10 +24,6 @@ class WPHelperFunctions {
|
|
24 |
return;
|
25 |
}
|
26 |
|
27 |
-
if (!session_id()){
|
28 |
-
session_start();
|
29 |
-
}
|
30 |
-
|
31 |
if (is_admin()){
|
32 |
self::update_plugin();
|
33 |
}
|
@@ -54,6 +50,7 @@ class WPHelperFunctions {
|
|
54 |
$property_id = get_option('lrgawidget_property_id',"");
|
55 |
if ( (!empty($property_id) && !self::is_analytics($property_id)) || (!empty($old_settings['property_id']) && !self::is_analytics($old_settings['property_id'])) ){
|
56 |
$wpdb->query("TRUNCATE TABLE `".lrgawidget_plugin_table."`");
|
|
|
57 |
foreach ($_SESSION as $key => $value) {
|
58 |
if(preg_match('/^lrgatmp_/s', $key)){
|
59 |
unset($_SESSION[$key]);
|
24 |
return;
|
25 |
}
|
26 |
|
|
|
|
|
|
|
|
|
27 |
if (is_admin()){
|
28 |
self::update_plugin();
|
29 |
}
|
50 |
$property_id = get_option('lrgawidget_property_id',"");
|
51 |
if ( (!empty($property_id) && !self::is_analytics($property_id)) || (!empty($old_settings['property_id']) && !self::is_analytics($old_settings['property_id'])) ){
|
52 |
$wpdb->query("TRUNCATE TABLE `".lrgawidget_plugin_table."`");
|
53 |
+
if (!session_id()){session_start();}
|
54 |
foreach ($_SESSION as $key => $value) {
|
55 |
if(preg_match('/^lrgatmp_/s', $key)){
|
56 |
unset($_SESSION[$key]);
|
lara-google-analytics.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Lara's Google Analytics
|
5 |
Plugin URI: https://www.xtraorbit.com/wordpress-google-analytics-dashboard-widget/
|
6 |
Description: Full width Google Analytics dashboard widget for Wordpress admin interface, which also inserts latest Google Analytics tracking code to your pages.
|
7 |
-
Version: 3.2.
|
8 |
Author: Amr M. Ibrahim
|
9 |
Author URI: https://www.xtraorbit.com/
|
10 |
License: GPL2
|
@@ -12,8 +12,8 @@ Text Domain: lara-google-analytics
|
|
12 |
Domain Path: /languages/
|
13 |
*/
|
14 |
|
15 |
-
define ("lrgawidget_plugin_version", "3.2.
|
16 |
-
define ("lrgawidget_plugin_scripts_version", "
|
17 |
define ("lrgawidget_plugin_prefiex", "lrgalite-");
|
18 |
define ("lrgawidget_plugin_dist_dir", plugin_dir_url( __FILE__ ).'dist/');
|
19 |
define ("lrgawidget_plugin_plugins_dir", plugin_dir_url( __FILE__ ).'dist/plugins/');
|
4 |
Plugin Name: Lara's Google Analytics
|
5 |
Plugin URI: https://www.xtraorbit.com/wordpress-google-analytics-dashboard-widget/
|
6 |
Description: Full width Google Analytics dashboard widget for Wordpress admin interface, which also inserts latest Google Analytics tracking code to your pages.
|
7 |
+
Version: 3.2.1
|
8 |
Author: Amr M. Ibrahim
|
9 |
Author URI: https://www.xtraorbit.com/
|
10 |
License: GPL2
|
12 |
Domain Path: /languages/
|
13 |
*/
|
14 |
|
15 |
+
define ("lrgawidget_plugin_version", "3.2.1");
|
16 |
+
define ("lrgawidget_plugin_scripts_version", "321");
|
17 |
define ("lrgawidget_plugin_prefiex", "lrgalite-");
|
18 |
define ("lrgawidget_plugin_dist_dir", plugin_dir_url( __FILE__ ).'dist/');
|
19 |
define ("lrgawidget_plugin_plugins_dir", plugin_dir_url( __FILE__ ).'dist/plugins/');
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: amribrahim, laragoogleanalytics
|
|
4 |
Requires PHP: 5.3.0
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.4.0
|
7 |
-
Stable tag: 3.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -129,4 +129,8 @@ Adds a full width Google Analytics dashboard widget for WordPress admin interfac
|
|
129 |
* 5-Mar-2020
|
130 |
* New : [pro] Added the ability to lock settings for users.
|
131 |
* New : WooCommerce earnings graph.
|
132 |
-
* Fix : Compatibility issues with other plugins, that causes the widget to display a blank page, instead of the main graph.
|
|
|
|
|
|
|
|
4 |
Requires PHP: 5.3.0
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.4.0
|
7 |
+
Stable tag: 3.2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
129 |
* 5-Mar-2020
|
130 |
* New : [pro] Added the ability to lock settings for users.
|
131 |
* New : WooCommerce earnings graph.
|
132 |
+
* Fix : Compatibility issues with other plugins, that causes the widget to display a blank page, instead of the main graph.
|
133 |
+
|
134 |
+
= 3.2.1 =
|
135 |
+
* 13-Mar-2020
|
136 |
+
* Fix : Site Health errors, caused by session_start.
|