Version Description
Download this release
Release Info
Developer | webkinder |
Plugin | Google Analytics |
Version | 1.9.4 |
Comparing to | |
See all releases |
Code changes from version 1.9.3 to 1.9.4
- lib/Plugin.php +13 -14
- readme.txt +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
- wk-ga.php +1 -1
lib/Plugin.php
CHANGED
@@ -53,10 +53,10 @@ class Plugin
|
|
53 |
add_filter('plugin_row_meta', array($this, 'additional_admin_information_links'), 10, 2);
|
54 |
add_filter('plugin_action_links_' . plugin_basename(__FILE__), array($this, 'additional_admin_action_links'));
|
55 |
|
56 |
-
|
|
|
57 |
}
|
58 |
|
59 |
-
|
60 |
/**
|
61 |
* Adds custom links to wk-google-analytics on admin plugin screen on the RIGHT
|
62 |
*
|
@@ -74,7 +74,6 @@ class Plugin
|
|
74 |
return $links;
|
75 |
}
|
76 |
|
77 |
-
|
78 |
/**
|
79 |
* Sets up the translations in /lang directory
|
80 |
*
|
@@ -86,19 +85,9 @@ class Plugin
|
|
86 |
load_plugin_textdomain('wk-google-analytics', false, basename(plugin_dir_path(__DIR__)) . '/languages');
|
87 |
}
|
88 |
|
89 |
-
/**
|
90 |
-
* Add GA Text to default text
|
91 |
-
* @param $content
|
92 |
-
* @return string
|
93 |
-
*/
|
94 |
-
function add_privacy_policy_default_text($content)
|
95 |
-
{
|
96 |
-
$content .= self::get_ga_policy_text();
|
97 |
-
return $content;
|
98 |
-
}
|
99 |
-
|
100 |
/**
|
101 |
* Get the text for GA
|
|
|
102 |
* @return string
|
103 |
*/
|
104 |
static function get_ga_policy_text()
|
@@ -108,4 +97,14 @@ class Plugin
|
|
108 |
$content = ob_get_clean();
|
109 |
return $content;
|
110 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
}
|
53 |
add_filter('plugin_row_meta', array($this, 'additional_admin_information_links'), 10, 2);
|
54 |
add_filter('plugin_action_links_' . plugin_basename(__FILE__), array($this, 'additional_admin_action_links'));
|
55 |
|
56 |
+
// add privacy policy content
|
57 |
+
add_action('admin_init', [$this, 'register_privacy_policy_content']);
|
58 |
}
|
59 |
|
|
|
60 |
/**
|
61 |
* Adds custom links to wk-google-analytics on admin plugin screen on the RIGHT
|
62 |
*
|
74 |
return $links;
|
75 |
}
|
76 |
|
|
|
77 |
/**
|
78 |
* Sets up the translations in /lang directory
|
79 |
*
|
85 |
load_plugin_textdomain('wk-google-analytics', false, basename(plugin_dir_path(__DIR__)) . '/languages');
|
86 |
}
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
/**
|
89 |
* Get the text for GA
|
90 |
+
*
|
91 |
* @return string
|
92 |
*/
|
93 |
static function get_ga_policy_text()
|
97 |
$content = ob_get_clean();
|
98 |
return $content;
|
99 |
}
|
100 |
+
|
101 |
+
/**
|
102 |
+
* Add privacy policy content
|
103 |
+
*
|
104 |
+
* @return void
|
105 |
+
*/
|
106 |
+
public function register_privacy_policy_content()
|
107 |
+
{
|
108 |
+
wp_add_privacy_policy_content(__('WebKinder Google Analytics', 'wk-google-analytics'), self::get_ga_policy_text());
|
109 |
+
}
|
110 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: google analytics, tracking code, analytics, anonymization, anonymize, anon
|
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 5.5.3
|
6 |
Requires PHP: 7.1
|
7 |
-
Stable tag: 1.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 5.5.3
|
6 |
Requires PHP: 7.1
|
7 |
+
Stable tag: 1.9.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInita41f8126f0c5c38a0ccbcb53dfaf1479::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit16d829d8f7177474c583de4b61926aea
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInita41f8126f0c5c38a0ccbcb53dfaf1479
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInita41f8126f0c5c38a0ccbcb53dfaf1479', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInita41f8126f0c5c38a0ccbcb53dfaf1479', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInita41f8126f0c5c38a0ccbcb53dfaf1479::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'W' =>
|
@@ -110,9 +110,9 @@ class ComposerStaticInit16d829d8f7177474c583de4b61926aea
|
|
110 |
public static function getInitializer(ClassLoader $loader)
|
111 |
{
|
112 |
return \Closure::bind(function () use ($loader) {
|
113 |
-
$loader->prefixLengthsPsr4 =
|
114 |
-
$loader->prefixDirsPsr4 =
|
115 |
-
$loader->classMap =
|
116 |
|
117 |
}, null, ClassLoader::class);
|
118 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInita41f8126f0c5c38a0ccbcb53dfaf1479
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'W' =>
|
110 |
public static function getInitializer(ClassLoader $loader)
|
111 |
{
|
112 |
return \Closure::bind(function () use ($loader) {
|
113 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInita41f8126f0c5c38a0ccbcb53dfaf1479::$prefixLengthsPsr4;
|
114 |
+
$loader->prefixDirsPsr4 = ComposerStaticInita41f8126f0c5c38a0ccbcb53dfaf1479::$prefixDirsPsr4;
|
115 |
+
$loader->classMap = ComposerStaticInita41f8126f0c5c38a0ccbcb53dfaf1479::$classMap;
|
116 |
|
117 |
}, null, ClassLoader::class);
|
118 |
}
|
wk-ga.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Google Analytics and Google Tag Manager by WebKinder
|
5 |
* Plugin URI: https://wordpress.org/plugins/wk-google-analytics/
|
6 |
* Description: Deploy Google Analytics on your website without having to edit code and without tracking your own visits. You can exclude any logged in user from this and enable tracking solely for them.
|
7 |
-
* Version: 1.9.
|
8 |
* Author: WebKinder
|
9 |
* Author URI: https://www.webkinder.ch
|
10 |
* License: GPL2
|
4 |
* Plugin Name: Google Analytics and Google Tag Manager by WebKinder
|
5 |
* Plugin URI: https://wordpress.org/plugins/wk-google-analytics/
|
6 |
* Description: Deploy Google Analytics on your website without having to edit code and without tracking your own visits. You can exclude any logged in user from this and enable tracking solely for them.
|
7 |
+
* Version: 1.9.4
|
8 |
* Author: WebKinder
|
9 |
* Author URI: https://www.webkinder.ch
|
10 |
* License: GPL2
|