Version Description
Release Date - 2022-4-7
- IWP-419 Fix conflict with WP Super Cache
- IWP-420 & IWP-421 Add documentation links
- Reduce PHP requirement to 5.6
Download this release
Release Info
Developer | data443 |
Plugin | Tracking Code Manager |
Version | 2.0.6 |
Comparing to | |
See all releases |
Code changes from version 2.0.5 to 2.0.6
- includes/admin/AdminOptions.php +30 -0
- includes/classes/ui/Tabs.php +7 -0
- includes/classes/utils/Options.php +16 -0
- includes/core.php +6 -0
- index.php +5 -3
- languages/Lang.txt +1 -0
- readme.txt +11 -0
includes/admin/AdminOptions.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function tcmp_ui_admin_options() {
|
3 |
+
global $tcmp;
|
4 |
+
|
5 |
+
?>
|
6 |
+
<div style="float:left; min-width:750px">
|
7 |
+
|
8 |
+
<?php
|
9 |
+
|
10 |
+
$tcmp->Form->prefix = 'AdminOptions';
|
11 |
+
$tcmp->Form->formStarts();
|
12 |
+
|
13 |
+
if ($tcmp->Check->nonce('tcmp_admin_options')) {
|
14 |
+
$tcmp->Options->setModifySuperglobalVariable($tcmp->Utils->iqs('checkbox'));
|
15 |
+
}
|
16 |
+
|
17 |
+
$tcmp->Form->p(__('Enable option to change cache behavior'));
|
18 |
+
|
19 |
+
$modify = $tcmp->Options->getModifySuperglobalVariable();
|
20 |
+
|
21 |
+
$tcmp->Form->checkbox('checkbox', $modify);
|
22 |
+
$tcmp->Form->p('NOTE: From time to time, Support may recommend the superglobal switch to be turned on. Please do not turn it on unless support gives you direction to do so.');
|
23 |
+
|
24 |
+
$tcmp->Form->nonce('tcmp_admin_options');
|
25 |
+
$tcmp->Form->br();
|
26 |
+
$tcmp->Form->submit('Save');
|
27 |
+
$tcmp->Form->formEnds();
|
28 |
+
|
29 |
+
?> </div> <?php
|
30 |
+
}
|
includes/classes/ui/Tabs.php
CHANGED
@@ -103,6 +103,7 @@ class TCMP_Tabs {
|
|
103 |
}
|
104 |
|
105 |
$this->tabs[TCMP_TAB_MANAGER]=$tcmp->Lang->L('Manager');
|
|
|
106 |
$this->tabs[TCMP_TAB_SETTINGS]=$tcmp->Lang->L('Settings');
|
107 |
$this->tabs[TCMP_TAB_DOCS]=$tcmp->Lang->L('Docs & FAQ');
|
108 |
}
|
@@ -123,6 +124,9 @@ class TCMP_Tabs {
|
|
123 |
case TCMP_TAB_MANAGER:
|
124 |
$header='Manager';
|
125 |
break;
|
|
|
|
|
|
|
126 |
case TCMP_TAB_SETTINGS:
|
127 |
$header='Settings';
|
128 |
break;
|
@@ -159,6 +163,9 @@ class TCMP_Tabs {
|
|
159 |
case TCMP_TAB_MANAGER:
|
160 |
tcmp_ui_manager();
|
161 |
break;
|
|
|
|
|
|
|
162 |
case TCMP_TAB_SETTINGS:
|
163 |
tcmp_ui_track();
|
164 |
tcmp_ui_settings();
|
103 |
}
|
104 |
|
105 |
$this->tabs[TCMP_TAB_MANAGER]=$tcmp->Lang->L('Manager');
|
106 |
+
$this->tabs[TCMP_TAB_ADMIN_OPTIONS] = $tcmp->Lang->L('Admin Options');
|
107 |
$this->tabs[TCMP_TAB_SETTINGS]=$tcmp->Lang->L('Settings');
|
108 |
$this->tabs[TCMP_TAB_DOCS]=$tcmp->Lang->L('Docs & FAQ');
|
109 |
}
|
124 |
case TCMP_TAB_MANAGER:
|
125 |
$header='Manager';
|
126 |
break;
|
127 |
+
case TCMP_TAB_ADMIN_OPTIONS:
|
128 |
+
$header='Admin Options';
|
129 |
+
break;
|
130 |
case TCMP_TAB_SETTINGS:
|
131 |
$header='Settings';
|
132 |
break;
|
163 |
case TCMP_TAB_MANAGER:
|
164 |
tcmp_ui_manager();
|
165 |
break;
|
166 |
+
case TCMP_TAB_ADMIN_OPTIONS:
|
167 |
+
tcmp_ui_admin_options();
|
168 |
+
break;
|
169 |
case TCMP_TAB_SETTINGS:
|
170 |
tcmp_ui_track();
|
171 |
tcmp_ui_settings();
|
includes/classes/utils/Options.php
CHANGED
@@ -428,6 +428,22 @@ class TCMP_Options {
|
|
428 |
$this->setOption('MetaboxPostTypes', $values);
|
429 |
}
|
430 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
431 |
//hook priority
|
432 |
public function getHookPriority()
|
433 |
{
|
428 |
$this->setOption('MetaboxPostTypes', $values);
|
429 |
}
|
430 |
|
431 |
+
// Modify Superglobal Variable
|
432 |
+
public function getModifySuperglobalVariable()
|
433 |
+
{
|
434 |
+
return $this->getOption('ModifySuperglobalVariable', false);
|
435 |
+
}
|
436 |
+
|
437 |
+
public function setModifySuperglobalVariable($value)
|
438 |
+
{
|
439 |
+
global $tcmp;
|
440 |
+
if ($tcmp->Utils->isTrue($value)) {
|
441 |
+
$this->setOption('ModifySuperglobalVariable', true);
|
442 |
+
} else {
|
443 |
+
$this->setOption('ModifySuperglobalVariable', false);
|
444 |
+
}
|
445 |
+
}
|
446 |
+
|
447 |
//hook priority
|
448 |
public function getHookPriority()
|
449 |
{
|
includes/core.php
CHANGED
@@ -40,6 +40,12 @@ function tcmp_footer() {
|
|
40 |
|
41 |
$tcmp->Manager->writeCodes(TCMP_POSITION_CONVERSION);
|
42 |
$tcmp->Manager->writeCodes(TCMP_POSITION_FOOTER);
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
}
|
44 |
|
45 |
//volendo funziona anche con gli shortcode
|
40 |
|
41 |
$tcmp->Manager->writeCodes(TCMP_POSITION_CONVERSION);
|
42 |
$tcmp->Manager->writeCodes(TCMP_POSITION_FOOTER);
|
43 |
+
|
44 |
+
if ($tcmp->Options->getModifySuperglobalVariable()) {
|
45 |
+
if (function_exists('wp_cache_set_home')) {
|
46 |
+
unset($_POST);
|
47 |
+
}
|
48 |
+
}
|
49 |
}
|
50 |
|
51 |
//volendo funziona anche con gli shortcode
|
index.php
CHANGED
@@ -6,9 +6,9 @@ Description: A plugin to manage ALL your tracking code and conversion pixels, si
|
|
6 |
Author: Data443
|
7 |
Author URI: https://data443.com/
|
8 |
Email: info@intellywp.com
|
9 |
-
Version: 2.0.
|
10 |
Requires at least: 3.6.0
|
11 |
-
Requires PHP:
|
12 |
*/
|
13 |
if(defined('TCMP_PLUGIN_NAME')) {
|
14 |
function tcmp_admin_notices() {
|
@@ -26,7 +26,7 @@ define('TCMP_PLUGIN_PREFIX', 'TCMP_');
|
|
26 |
define('TCMP_PLUGIN_FILE',__FILE__);
|
27 |
define('TCMP_PLUGIN_SLUG', 'tracking-code-manager');
|
28 |
define('TCMP_PLUGIN_NAME', 'Tracking Code Manager');
|
29 |
-
define('TCMP_PLUGIN_VERSION', '2.0.
|
30 |
define('TCMP_PLUGIN_AUTHOR', 'IntellyWP');
|
31 |
|
32 |
define('TCMP_PLUGIN_DIR', dirname(__FILE__).'/');
|
@@ -71,6 +71,8 @@ define('TCMP_TAB_EDITOR', 'editor');
|
|
71 |
define('TCMP_TAB_EDITOR_URI', TCMP_PAGE_MANAGER.'&tab='.TCMP_TAB_EDITOR);
|
72 |
define('TCMP_TAB_MANAGER', 'manager');
|
73 |
define('TCMP_TAB_MANAGER_URI', TCMP_PAGE_MANAGER.'&tab='.TCMP_TAB_MANAGER);
|
|
|
|
|
74 |
define('TCMP_TAB_SETTINGS', 'settings');
|
75 |
define('TCMP_TAB_SETTINGS_URI', TCMP_PAGE_MANAGER.'&tab='.TCMP_TAB_SETTINGS);
|
76 |
define('TCMP_TAB_DOCS', 'docs');
|
6 |
Author: Data443
|
7 |
Author URI: https://data443.com/
|
8 |
Email: info@intellywp.com
|
9 |
+
Version: 2.0.6
|
10 |
Requires at least: 3.6.0
|
11 |
+
Requires PHP: 5.6
|
12 |
*/
|
13 |
if(defined('TCMP_PLUGIN_NAME')) {
|
14 |
function tcmp_admin_notices() {
|
26 |
define('TCMP_PLUGIN_FILE',__FILE__);
|
27 |
define('TCMP_PLUGIN_SLUG', 'tracking-code-manager');
|
28 |
define('TCMP_PLUGIN_NAME', 'Tracking Code Manager');
|
29 |
+
define('TCMP_PLUGIN_VERSION', '2.0.6');
|
30 |
define('TCMP_PLUGIN_AUTHOR', 'IntellyWP');
|
31 |
|
32 |
define('TCMP_PLUGIN_DIR', dirname(__FILE__).'/');
|
71 |
define('TCMP_TAB_EDITOR_URI', TCMP_PAGE_MANAGER.'&tab='.TCMP_TAB_EDITOR);
|
72 |
define('TCMP_TAB_MANAGER', 'manager');
|
73 |
define('TCMP_TAB_MANAGER_URI', TCMP_PAGE_MANAGER.'&tab='.TCMP_TAB_MANAGER);
|
74 |
+
define('TCMP_TAB_ADMIN_OPTIONS', 'admin options');
|
75 |
+
define('TCMP_TAB_ADMIN_OPTIONS_URI', TCMP_PAGE_MANAGER.'&tab='.TCMP_TAB_ADMIN_OPTIONS);
|
76 |
define('TCMP_TAB_SETTINGS', 'settings');
|
77 |
define('TCMP_TAB_SETTINGS_URI', TCMP_PAGE_MANAGER.'&tab='.TCMP_TAB_SETTINGS);
|
78 |
define('TCMP_TAB_DOCS', 'docs');
|
languages/Lang.txt
CHANGED
@@ -2,6 +2,7 @@ AboutNotice=Thank you for trying our amazing plugin. Now you are able to quickly
|
|
2 |
AboutText1=We are Stefan and Alex, two guys in love with Wordpress, coding and marketing! Our company IntellyWP is an idea to bring Intelly ideas to your Intelly site ;)
|
3 |
AboutText2=Feel free to reach us by the feedback form below.
|
4 |
AboutTitle=We make Intelly plugins for your Intelly site
|
|
|
5 |
Actions=
|
6 |
ActivateError=Errors activating key. Network problem or wrong password
|
7 |
ActivateSuccess1=License key "{0}" successfully activated
|
2 |
AboutText1=We are Stefan and Alex, two guys in love with Wordpress, coding and marketing! Our company IntellyWP is an idea to bring Intelly ideas to your Intelly site ;)
|
3 |
AboutText2=Feel free to reach us by the feedback form below.
|
4 |
AboutTitle=We make Intelly plugins for your Intelly site
|
5 |
+
AdminOptions.checkbox=Modify Superglobal Variable
|
6 |
Actions=
|
7 |
ActivateError=Errors activating key. Network problem or wrong password
|
8 |
ActivateSuccess1=License key "{0}" successfully activated
|
readme.txt
CHANGED
@@ -55,6 +55,8 @@ With Tracking Code Manager you can forget about this problem also if you will ch
|
|
55 |
|
56 |
You can also click on this link [http://intellywp.com/tracking-code-manager/](http://intellywp.com/tracking-code-manager/?utm_source=wordpress-org&utm_medium=plugin-page&utm_campaign=TCM) to see a full explanation. This is our official webpage, you will see the plugin in action, with the possibility to buy PREMIUM version and have full support.
|
57 |
|
|
|
|
|
58 |
== Frequently Asked Questions ==
|
59 |
|
60 |
> <strong>Bug Reports</strong><br>
|
@@ -105,6 +107,15 @@ Have a look at the source code of your page (search for: Tracking Code Manager)
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
= 2.0.5 =
|
109 |
*Release Date - 2022-2-14*
|
110 |
|
55 |
|
56 |
You can also click on this link [http://intellywp.com/tracking-code-manager/](http://intellywp.com/tracking-code-manager/?utm_source=wordpress-org&utm_medium=plugin-page&utm_campaign=TCM) to see a full explanation. This is our official webpage, you will see the plugin in action, with the possibility to buy PREMIUM version and have full support.
|
57 |
|
58 |
+
For documentation click here: [https://intellywp.com/docs/category/tracking-code-manager/](https://intellywp.com/docs/category/tracking-code-manager/)
|
59 |
+
|
60 |
== Frequently Asked Questions ==
|
61 |
|
62 |
> <strong>Bug Reports</strong><br>
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
For detailed release notes, see our documentation here: [https://intellywp.com/docs/category/tracking-code-manager/](https://intellywp.com/docs/category/tracking-code-manager/).
|
111 |
+
|
112 |
+
= 2.0.6 =
|
113 |
+
*Release Date - 2022-4-7*
|
114 |
+
|
115 |
+
* IWP-419 Fix conflict with WP Super Cache
|
116 |
+
* IWP-420 & IWP-421 Add documentation links
|
117 |
+
* Reduce PHP requirement to 5.6
|
118 |
+
|
119 |
= 2.0.5 =
|
120 |
*Release Date - 2022-2-14*
|
121 |
|