Tracking Code Manager - Version 2.0.9

Version Description

Release Date - 2022-7-11

  • IWP-458 - Fix improper removal of an html tag
  • IWP-459 - Recognize the presence of the noscript tag
  • IWP-460 - Fix a bug that modified the displaying of posts and pages
Download this release

Release Info

Developer data443
Plugin Icon 128x128 Tracking Code Manager
Version 2.0.9
Comparing to
See all releases

Code changes from version 2.0.8 to 2.0.9

assets/js/manager.js CHANGED
@@ -26,3 +26,10 @@ jQuery(function() {
26
  fjs.parentNode.insertBefore(js,fjs);
27
  }
28
  }(document, 'script', 'twitter-wjs');
 
 
 
 
 
 
 
26
  fjs.parentNode.insertBefore(js,fjs);
27
  }
28
  }(document, 'script', 'twitter-wjs');
29
+
30
+ jQuery(function() {
31
+ var href = jQuery("#tcmpRedirect").attr("href") || [];
32
+ if (href.length > 0) {
33
+ window.location.replace(href);
34
+ }
35
+ });
includes/classes/core/Manager.php CHANGED
@@ -328,8 +328,9 @@ class TCMP_Manager {
328
  $args = array( 'field' => 'code' );
329
  $codes = $tcmp->manager->get_codes( $position, $post, $args );
330
  if ( is_array( $codes ) && count( $codes ) > 0 ) {
 
331
  ob_start();
332
- echo "\n<!--BEGIN: TRACKING CODE MANAGER BY INTELLYWP.COM IN $text//-->";
333
  foreach ( $codes as $v ) {
334
  echo "\n$v";
335
  }
328
  $args = array( 'field' => 'code' );
329
  $codes = $tcmp->manager->get_codes( $position, $post, $args );
330
  if ( is_array( $codes ) && count( $codes ) > 0 ) {
331
+ $version = TCMP_PLUGIN_VERSION;
332
  ob_start();
333
+ echo "\n<!--BEGIN: TRACKING CODE (v$version) MANAGER BY INTELLYWP.COM IN $text//-->";
334
  foreach ( $codes as $v ) {
335
  echo "\n$v";
336
  }
includes/classes/utils/Options.php CHANGED
@@ -107,7 +107,12 @@ class TCMP_Options {
107
  $key = $this->get_key( $key );
108
  $result = $default;
109
  if ( isset( $_POST[ $key ] ) ) {
110
- $result = $this->recursive_wp_kses( $_POST[ $key ] );
 
 
 
 
 
111
  }
112
  return $result;
113
  }
@@ -119,6 +124,8 @@ class TCMP_Options {
119
  } else {
120
  global $tcmp_allowed_html_tags;
121
  $value = wp_kses( $value, $tcmp_allowed_html_tags );
 
 
122
  }
123
  }
124
  return $array;
107
  $key = $this->get_key( $key );
108
  $result = $default;
109
  if ( isset( $_POST[ $key ] ) ) {
110
+ if ( is_object($_POST[ $key ]) ) {
111
+ $result = clone $_POST[ $key ];
112
+ } else {
113
+ $result = $_POST[ $key ];
114
+ }
115
+ $result = $this->recursive_wp_kses( $result );
116
  }
117
  return $result;
118
  }
124
  } else {
125
  global $tcmp_allowed_html_tags;
126
  $value = wp_kses( $value, $tcmp_allowed_html_tags );
127
+ $value = str_replace( '&lt;', '<', $value );
128
+ $value = str_replace( '&gt;', '>', $value );
129
  }
130
  }
131
  return $array;
includes/classes/utils/Utils.php CHANGED
@@ -566,13 +566,8 @@ class TCMP_Utils {
566
  if ( '' == $location ) {
567
  return;
568
  }
569
- //seems that if you have installed xdebug (or some version of it) doesnt work so js added
570
- if ( ! headers_sent() ) {
571
- wp_redirect( $location );
572
- exit;
573
- }
574
  ?>
575
- <script> window.location.replace('<?php echo esc_attr( $location ); ?>'); </script>
576
  <?php
577
  die();
578
  }
566
  if ( '' == $location ) {
567
  return;
568
  }
 
 
 
 
 
569
  ?>
570
+ <div id="tcmpRedirect" href="<?php echo esc_attr( $location ); ?>"></div>
571
  <?php
572
  die();
573
  }
index.php CHANGED
@@ -6,7 +6,7 @@ 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.8
10
  Requires at least: 3.6.0
11
  Requires PHP: 5.6
12
  */
@@ -27,7 +27,7 @@ define( 'TCMP_PLUGIN_PREFIX', 'TCMP_' );
27
  define( 'TCMP_PLUGIN_FILE', __FILE__ );
28
  define( 'TCMP_PLUGIN_SLUG', 'tracking-code-manager' );
29
  define( 'TCMP_PLUGIN_NAME', 'Tracking Code Manager' );
30
- define( 'TCMP_PLUGIN_VERSION', '2.0.8' );
31
  define( 'TCMP_PLUGIN_AUTHOR', 'IntellyWP' );
32
 
33
  define( 'TCMP_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
@@ -124,6 +124,7 @@ $tcmp_allowed_html_tags['input'] = $tcmp_allowed_atts;
124
  $tcmp_allowed_html_tags['textarea'] = $tcmp_allowed_atts;
125
  $tcmp_allowed_html_tags['iframe'] = $tcmp_allowed_atts;
126
  $tcmp_allowed_html_tags['script'] = $tcmp_allowed_atts;
 
127
  $tcmp_allowed_html_tags['style'] = $tcmp_allowed_atts;
128
  $tcmp_allowed_html_tags['strong'] = $tcmp_allowed_atts;
129
  $tcmp_allowed_html_tags['small'] = $tcmp_allowed_atts;
6
  Author: Data443
7
  Author URI: https://data443.com/
8
  Email: info@intellywp.com
9
+ Version: 2.0.9
10
  Requires at least: 3.6.0
11
  Requires PHP: 5.6
12
  */
27
  define( 'TCMP_PLUGIN_FILE', __FILE__ );
28
  define( 'TCMP_PLUGIN_SLUG', 'tracking-code-manager' );
29
  define( 'TCMP_PLUGIN_NAME', 'Tracking Code Manager' );
30
+ define( 'TCMP_PLUGIN_VERSION', '2.0.9' );
31
  define( 'TCMP_PLUGIN_AUTHOR', 'IntellyWP' );
32
 
33
  define( 'TCMP_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
124
  $tcmp_allowed_html_tags['textarea'] = $tcmp_allowed_atts;
125
  $tcmp_allowed_html_tags['iframe'] = $tcmp_allowed_atts;
126
  $tcmp_allowed_html_tags['script'] = $tcmp_allowed_atts;
127
+ $tcmp_allowed_html_tags['noscript'] = $tcmp_allowed_atts;
128
  $tcmp_allowed_html_tags['style'] = $tcmp_allowed_atts;
129
  $tcmp_allowed_html_tags['strong'] = $tcmp_allowed_atts;
130
  $tcmp_allowed_html_tags['small'] = $tcmp_allowed_atts;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: IntellyWP, Data443
3
  Tags: adwords remarketing, analytics conversion tracking, conversion pixel, conversion tracking, conversion tracking adwords, conversion tracking pixel, conversion tracking script,Facebook Ads, facebook conversion pixel, facebook custom audience, facebook retargeting, google adwords, google analytics web tracking code, google tag manager, html snippet, html snippets, html tracking code, javascript snippet, javascript snippets, header and footer, pay per click tracking, pixel tracking code, remarketing, retargeting, snippets, Tag Management, track conversion, track conversions, tracking code, tracking codes, tracking script, woocommerce, edd, easy digital downloads, wp ecommerce, wp e-commerce, gdpr, tracking gdpr, privacy
4
  Requires at least: 2.7
5
  Tested up to: 6.0
6
- Stable tag: trunk
7
  Requires PHP: 5.6
8
 
9
  A plugin to manage ALL of your tracking code and conversion pixels. Compatible with Facebook Ads, Google Adwords, WooCommerce, Easy Digital Downloads, ..
@@ -112,6 +112,13 @@ Have a look at the source code of your page (search for: Tracking Code Manager)
112
 
113
  For detailed release notes, see our documentation here: [https://intellywp.com/docs/category/tracking-code-manager/](https://intellywp.com/docs/category/tracking-code-manager/).
114
 
 
 
 
 
 
 
 
115
  = 2.0.8 =
116
  *Release Date - 2022-7-8*
117
 
3
  Tags: adwords remarketing, analytics conversion tracking, conversion pixel, conversion tracking, conversion tracking adwords, conversion tracking pixel, conversion tracking script,Facebook Ads, facebook conversion pixel, facebook custom audience, facebook retargeting, google adwords, google analytics web tracking code, google tag manager, html snippet, html snippets, html tracking code, javascript snippet, javascript snippets, header and footer, pay per click tracking, pixel tracking code, remarketing, retargeting, snippets, Tag Management, track conversion, track conversions, tracking code, tracking codes, tracking script, woocommerce, edd, easy digital downloads, wp ecommerce, wp e-commerce, gdpr, tracking gdpr, privacy
4
  Requires at least: 2.7
5
  Tested up to: 6.0
6
+ Stable tag: 2.0.9
7
  Requires PHP: 5.6
8
 
9
  A plugin to manage ALL of your tracking code and conversion pixels. Compatible with Facebook Ads, Google Adwords, WooCommerce, Easy Digital Downloads, ..
112
 
113
  For detailed release notes, see our documentation here: [https://intellywp.com/docs/category/tracking-code-manager/](https://intellywp.com/docs/category/tracking-code-manager/).
114
 
115
+ = 2.0.9 =
116
+ *Release Date - 2022-7-11*
117
+
118
+ * IWP-458 - Fix improper removal of an html tag
119
+ * IWP-459 - Recognize the presence of the noscript tag
120
+ * IWP-460 - Fix a bug that modified the displaying of posts and pages
121
+
122
  = 2.0.8 =
123
  *Release Date - 2022-7-8*
124