Changeset 3387047
- Timestamp:
- 10/30/2025 12:27:54 PM (5 months ago)
- Location:
- woocommerce-google-analytics-integration
- Files:
-
- 8 edited
- 1 copied
-
tags/2.1.19 (copied) (copied from woocommerce-google-analytics-integration/trunk)
-
tags/2.1.19/changelog.txt (modified) (1 diff)
-
tags/2.1.19/includes/class-wc-google-gtag-js.php (modified) (3 diffs)
-
tags/2.1.19/readme.txt (modified) (2 diffs)
-
tags/2.1.19/woocommerce-google-analytics-integration.php (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/class-wc-google-gtag-js.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocommerce-google-analytics-integration.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-google-analytics-integration/tags/2.1.19/changelog.txt
r3370825 r3387047 1 1 *** Changelog *** 2 3 = 2.1.19 - 2025-10-30 = 4 * Fix - Add safe script tag encoding flags to all `wp_json_encode()` calls in inline scripts. 5 * Update - Require WooCommerce 10.2+. 2 6 3 7 = 2.1.18 - 2025-10-01 = -
woocommerce-google-analytics-integration/tags/2.1.19/includes/class-wc-google-gtag-js.php
r3225957 r3387047 103 103 esc_js( $this->tracker_function_name() ), 104 104 esc_js( static::DEVELOPER_ID ), 105 wp_json_encode( $this->get_consent_modes() ),106 wp_json_encode( $this->get_site_tag_config() )105 wp_json_encode( $this->get_consent_modes(), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), 106 wp_json_encode( $this->get_site_tag_config(), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) 107 107 ) 108 108 ) … … 163 163 'identifier' => $this->get( 'ga_product_identifier' ), 164 164 ), 165 JSON_HEX_TAG | JSON_UNESCAPED_SLASHES 165 166 ), 166 167 ) … … 247 248 */ 248 249 public function get_script_data(): string { 249 return wp_json_encode( $this->script_data );250 return wp_json_encode( $this->script_data, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ); 250 251 } 251 252 -
woocommerce-google-analytics-integration/tags/2.1.19/readme.txt
r3370825 r3387047 4 4 Requires at least: 6.7 5 5 Tested up to: 6.8 6 Stable tag: 2.1.1 86 Stable tag: 2.1.19 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 49 49 == Changelog == 50 50 51 = 2.1.19 - 2025-10-30 = 52 * Fix - Add safe script tag encoding flags to all `wp_json_encode()` calls in inline scripts. 53 * Update - Require WooCommerce 10.2+. 54 51 55 = 2.1.18 - 2025-10-01 = 52 56 * Tweak - Don't throw errors when the product ID is not found for legacy Ajax add-to-cart. -
woocommerce-google-analytics-integration/tags/2.1.19/woocommerce-google-analytics-integration.php
r3370825 r3387047 6 6 * Author: WooCommerce 7 7 * Author URI: https://woocommerce.com 8 * Version: 2.1.1 89 * WC requires at least: 10. 110 * WC tested up to: 10. 28 * Version: 2.1.19 9 * WC requires at least: 10.2 10 * WC tested up to: 10.3 11 11 * Requires at least: 6.7 12 12 * Requires Plugins: woocommerce … … 27 27 if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) { 28 28 29 define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '2.1.1 8' ); // WRCS: DEFINED_VERSION.30 define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_MIN_WC_VER', '10. 1' );29 define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '2.1.19' ); // WRCS: DEFINED_VERSION. 30 define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_MIN_WC_VER', '10.2' ); 31 31 32 32 // Maybe show the GA Pro notice on plugin activation. -
woocommerce-google-analytics-integration/trunk/changelog.txt
r3370825 r3387047 1 1 *** Changelog *** 2 3 = 2.1.19 - 2025-10-30 = 4 * Fix - Add safe script tag encoding flags to all `wp_json_encode()` calls in inline scripts. 5 * Update - Require WooCommerce 10.2+. 2 6 3 7 = 2.1.18 - 2025-10-01 = -
woocommerce-google-analytics-integration/trunk/includes/class-wc-google-gtag-js.php
r3225957 r3387047 103 103 esc_js( $this->tracker_function_name() ), 104 104 esc_js( static::DEVELOPER_ID ), 105 wp_json_encode( $this->get_consent_modes() ),106 wp_json_encode( $this->get_site_tag_config() )105 wp_json_encode( $this->get_consent_modes(), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), 106 wp_json_encode( $this->get_site_tag_config(), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) 107 107 ) 108 108 ) … … 163 163 'identifier' => $this->get( 'ga_product_identifier' ), 164 164 ), 165 JSON_HEX_TAG | JSON_UNESCAPED_SLASHES 165 166 ), 166 167 ) … … 247 248 */ 248 249 public function get_script_data(): string { 249 return wp_json_encode( $this->script_data );250 return wp_json_encode( $this->script_data, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ); 250 251 } 251 252 -
woocommerce-google-analytics-integration/trunk/readme.txt
r3370825 r3387047 4 4 Requires at least: 6.7 5 5 Tested up to: 6.8 6 Stable tag: 2.1.1 86 Stable tag: 2.1.19 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 49 49 == Changelog == 50 50 51 = 2.1.19 - 2025-10-30 = 52 * Fix - Add safe script tag encoding flags to all `wp_json_encode()` calls in inline scripts. 53 * Update - Require WooCommerce 10.2+. 54 51 55 = 2.1.18 - 2025-10-01 = 52 56 * Tweak - Don't throw errors when the product ID is not found for legacy Ajax add-to-cart. -
woocommerce-google-analytics-integration/trunk/woocommerce-google-analytics-integration.php
r3370825 r3387047 6 6 * Author: WooCommerce 7 7 * Author URI: https://woocommerce.com 8 * Version: 2.1.1 89 * WC requires at least: 10. 110 * WC tested up to: 10. 28 * Version: 2.1.19 9 * WC requires at least: 10.2 10 * WC tested up to: 10.3 11 11 * Requires at least: 6.7 12 12 * Requires Plugins: woocommerce … … 27 27 if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) { 28 28 29 define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '2.1.1 8' ); // WRCS: DEFINED_VERSION.30 define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_MIN_WC_VER', '10. 1' );29 define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '2.1.19' ); // WRCS: DEFINED_VERSION. 30 define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_MIN_WC_VER', '10.2' ); 31 31 32 32 // Maybe show the GA Pro notice on plugin activation.
Note: See TracChangeset
for help on using the changeset viewer.