Version Description
If you are upgrading from 1.11.x, please read the previous changelog entry for v1.12
- Fixed: PHP notice while saving admin options
Download this release
Release Info
Developer | duracelltomi |
Plugin | DuracellTomi's Google Tag Manager for WordPress |
Version | 1.12.1 |
Comparing to | |
See all releases |
Code changes from version 1.12 to 1.12.1
- admin/admin.php +7 -4
- duracelltomi-google-tag-manager-for-wordpress.php +2 -2
- readme.txt +11 -1
admin/admin.php
CHANGED
@@ -687,15 +687,18 @@ function gtm4wp_sanitize_options( $options ) {
|
|
687 |
if ( GTM4WP_OPTION_BLACKLIST_ENABLE === $optionname ) {
|
688 |
$output[ $optionname ] = (int) $options[ GTM4WP_OPTION_BLACKLIST_ENABLE ];
|
689 |
} else if ( GTM4WP_OPTION_BLACKLIST_SANDBOXED == $optionname ) {
|
690 |
-
$output[ $optionname ] = (bool) $
|
691 |
} else if ( GTM4WP_OPTION_BLACKLIST_STATUS == $optionname ) {
|
692 |
$selected_blacklist_entities = array();
|
693 |
|
694 |
foreach( $gtm4wp_entity_ids as $gtm_entity_group_id => $gtm_entity_group_list ) {
|
695 |
foreach( $gtm_entity_group_list as $gtm_entity_id => $gtm_entity_label ) {
|
696 |
-
$
|
697 |
-
if ( $
|
698 |
-
$
|
|
|
|
|
|
|
699 |
}
|
700 |
}
|
701 |
}
|
687 |
if ( GTM4WP_OPTION_BLACKLIST_ENABLE === $optionname ) {
|
688 |
$output[ $optionname ] = (int) $options[ GTM4WP_OPTION_BLACKLIST_ENABLE ];
|
689 |
} else if ( GTM4WP_OPTION_BLACKLIST_SANDBOXED == $optionname ) {
|
690 |
+
$output[ $optionname ] = (bool) $newoptionvalue;
|
691 |
} else if ( GTM4WP_OPTION_BLACKLIST_STATUS == $optionname ) {
|
692 |
$selected_blacklist_entities = array();
|
693 |
|
694 |
foreach( $gtm4wp_entity_ids as $gtm_entity_group_id => $gtm_entity_group_list ) {
|
695 |
foreach( $gtm_entity_group_list as $gtm_entity_id => $gtm_entity_label ) {
|
696 |
+
$entity_option_id = 'blacklist-' . $gtm_entity_group_id . '-' . $gtm_entity_id;
|
697 |
+
if ( array_key_exists( $entity_option_id, $options ) ) {
|
698 |
+
$newoptionvalue = (bool) $options[ $entity_option_id ];
|
699 |
+
if ( $newoptionvalue ) {
|
700 |
+
$selected_blacklist_entities[] = $gtm_entity_id;
|
701 |
+
}
|
702 |
}
|
703 |
}
|
704 |
}
|
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.12
|
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: 3.2
|
|
13 |
WC tested up to: 5.1.0
|
14 |
*/
|
15 |
|
16 |
-
define( 'GTM4WP_VERSION', '1.12' );
|
17 |
define( 'GTM4WP_PATH', plugin_dir_path( __FILE__ ) );
|
18 |
|
19 |
global $gtp4wp_plugin_url, $gtp4wp_plugin_basename;
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Google Tag Manager for Wordpress
|
4 |
+
Version: 1.12.1
|
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: 5.1.0
|
14 |
*/
|
15 |
|
16 |
+
define( 'GTM4WP_VERSION', '1.12.1' );
|
17 |
define( 'GTM4WP_PATH', plugin_dir_path( __FILE__ ) );
|
18 |
|
19 |
global $gtp4wp_plugin_url, $gtp4wp_plugin_basename;
|
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.7
|
8 |
-
Stable tag: 1.12
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl.html
|
11 |
|
@@ -230,6 +230,12 @@ https://gtm4wp.com/how-to-articles/how-to-exclude-admin-users-from-being-tracked
|
|
230 |
|
231 |
== Changelog ==
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
= 1.12 =
|
234 |
|
235 |
WARNING!
|
@@ -665,6 +671,10 @@ Please report all bugs found in my plugin using the [contact form on my website]
|
|
665 |
|
666 |
== Upgrade Notice ==
|
667 |
|
|
|
|
|
|
|
|
|
668 |
= 1.12 =
|
669 |
|
670 |
Removed several deprecated features, dropped support for WooCommerce versions before 3.2, introduced GA4 data layer variables, deprecated classic ecommerce and Google Ads remarketing varibale
|
5 |
Requires at least: 3.4.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.7
|
8 |
+
Stable tag: 1.12.1
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl.html
|
11 |
|
230 |
|
231 |
== Changelog ==
|
232 |
|
233 |
+
= 1.12.1 =
|
234 |
+
|
235 |
+
If you are upgrading from 1.11.x, please read the previous changelog entry for v1.12
|
236 |
+
|
237 |
+
* Fixed: PHP notice while saving admin options
|
238 |
+
|
239 |
= 1.12 =
|
240 |
|
241 |
WARNING!
|
671 |
|
672 |
== Upgrade Notice ==
|
673 |
|
674 |
+
= 1.12.1 =
|
675 |
+
|
676 |
+
Bugfix release + v1.12: Removed several deprecated features, dropped support for WooCommerce versions before 3.2, introduced GA4 data layer variables, deprecated classic ecommerce and Google Ads remarketing varibale
|
677 |
+
|
678 |
= 1.12 =
|
679 |
|
680 |
Removed several deprecated features, dropped support for WooCommerce versions before 3.2, introduced GA4 data layer variables, deprecated classic ecommerce and Google Ads remarketing varibale
|