Version Description
- Fixed: possible PHP warning if geo data or weather data feature is turned on
Download this release
Release Info
Developer | duracelltomi |
Plugin | DuracellTomi's Google Tag Manager for WordPress |
Version | 1.9.2 |
Comparing to | |
See all releases |
Code changes from version 1.9.1 to 1.9.2
- duracelltomi-google-tag-manager-for-wordpress.php +2 -2
- public/frontend.php +0 -5
- readme.txt +9 -1
duracelltomi-google-tag-manager-for-wordpress.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Google Tag Manager for Wordpress
|
4 |
-
Version: 1.9.
|
5 |
Plugin URI: https://gtm4wp.com/
|
6 |
Description: The first Google Tag Manager plugin for WordPress with business goals in mind
|
7 |
Author: Thomas Geiger
|
@@ -13,7 +13,7 @@ WC requires at least: 2.6
|
|
13 |
WC tested up to: 3.5.4
|
14 |
*/
|
15 |
|
16 |
-
define( 'GTM4WP_VERSION', '1.9.
|
17 |
define( 'GTM4WP_PATH', plugin_dir_path( __FILE__ ) );
|
18 |
|
19 |
$gtp4wp_plugin_url = plugin_dir_url( __FILE__ );
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Google Tag Manager for Wordpress
|
4 |
+
Version: 1.9.2
|
5 |
Plugin URI: https://gtm4wp.com/
|
6 |
Description: The first Google Tag Manager plugin for WordPress with business goals in mind
|
7 |
Author: Thomas Geiger
|
13 |
WC tested up to: 3.5.4
|
14 |
*/
|
15 |
|
16 |
+
define( 'GTM4WP_VERSION', '1.9.2' );
|
17 |
define( 'GTM4WP_PATH', plugin_dir_path( __FILE__ ) );
|
18 |
|
19 |
$gtp4wp_plugin_url = plugin_dir_url( __FILE__ );
|
public/frontend.php
CHANGED
@@ -573,11 +573,6 @@ function gtm4wp_wp_loaded() {
|
|
573 |
$geodata = get_transient( 'gtm4wp-geodata-' . esc_attr( $client_ip ) );
|
574 |
|
575 |
if ( false === $geodata ) {
|
576 |
-
$log =
|
577 |
-
"User: ".gtm4wp_get_user_ip()." - ".date("F j, Y, g:i a")." - Session ID: " . esc_attr( $client_ip ) . " - ".
|
578 |
-
"URL: ".sprintf( 'http://api.ipstack.com/%s?access_key=%s&format=1', urlencode( gtm4wp_get_user_ip() ), $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_MISCGEOAPI ] ).PHP_EOL;
|
579 |
-
file_put_contents(dirname(__FILE__).'/ipstack_log/'.date("Y-m-d").'.log', $log, FILE_APPEND);
|
580 |
-
|
581 |
$gtm4wp_geodata = @wp_remote_get( sprintf( 'http://api.ipstack.com/%s?access_key=%s&format=1', urlencode( $client_ip ), $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_MISCGEOAPI ] ) );
|
582 |
|
583 |
if ( is_array( $gtm4wp_geodata ) && ( 200 == $gtm4wp_geodata[ "response" ][ "code" ] ) ) {
|
573 |
$geodata = get_transient( 'gtm4wp-geodata-' . esc_attr( $client_ip ) );
|
574 |
|
575 |
if ( false === $geodata ) {
|
|
|
|
|
|
|
|
|
|
|
576 |
$gtm4wp_geodata = @wp_remote_get( sprintf( 'http://api.ipstack.com/%s?access_key=%s&format=1', urlencode( $client_ip ), $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_MISCGEOAPI ] ) );
|
577 |
|
578 |
if ( is_array( $gtm4wp_geodata ) && ( 200 == $gtm4wp_geodata[ "response" ][ "code" ] ) ) {
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: google tag manager, tag manager, gtm, google, adwords, google adwords, goo
|
|
5 |
Requires at least: 3.4.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.0.3
|
8 |
-
Stable tag: 1.9.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl.html
|
11 |
|
@@ -258,6 +258,10 @@ If you or your social plugin inserts the Facebook buttons using IFRAMEs (like So
|
|
258 |
|
259 |
== Changelog ==
|
260 |
|
|
|
|
|
|
|
|
|
261 |
= 1.9.1 =
|
262 |
|
263 |
* Fixed: handle out of quota cases with ipstack queries properly
|
@@ -577,6 +581,10 @@ Please report all bugs found in my plugin using the [contact form on my website]
|
|
577 |
|
578 |
== Upgrade Notice ==
|
579 |
|
|
|
|
|
|
|
|
|
580 |
= 1.9.1 =
|
581 |
|
582 |
Bugfix version
|
5 |
Requires at least: 3.4.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.0.3
|
8 |
+
Stable tag: 1.9.2
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl.html
|
11 |
|
258 |
|
259 |
== Changelog ==
|
260 |
|
261 |
+
= 1.9.2 =
|
262 |
+
|
263 |
+
* Fixed: possible PHP warning if geo data or weather data feature is turned on
|
264 |
+
|
265 |
= 1.9.1 =
|
266 |
|
267 |
* Fixed: handle out of quota cases with ipstack queries properly
|
581 |
|
582 |
== Upgrade Notice ==
|
583 |
|
584 |
+
= 1.9.2 =
|
585 |
+
|
586 |
+
Fixed possible PHP warning if geo data or weather data feature is turned on
|
587 |
+
|
588 |
= 1.9.1 =
|
589 |
|
590 |
Bugfix version
|