Changeset 2983740
- Timestamp:
- 10/25/2023 12:30:21 PM (2 years ago)
- Location:
- piwik-pro
- Files:
-
- 67 added
- 1 deleted
- 6 edited
-
tags/1.3.2 (added)
-
tags/1.3.2/.htaccess (added)
-
tags/1.3.2/AUTHORS.txt (added)
-
tags/1.3.2/LICENSE.txt (added)
-
tags/1.3.2/README.txt (added)
-
tags/1.3.2/includes (added)
-
tags/1.3.2/includes/Plugin.php (added)
-
tags/1.3.2/includes/Settings.php (added)
-
tags/1.3.2/includes/WooCommerce.php (added)
-
tags/1.3.2/includes/index.html (added)
-
tags/1.3.2/index.html (added)
-
tags/1.3.2/languages (added)
-
tags/1.3.2/languages/index.html (added)
-
tags/1.3.2/plugin.php (added)
-
tags/1.3.2/templates (added)
-
tags/1.3.2/templates/add.php (added)
-
tags/1.3.2/templates/async.php (added)
-
tags/1.3.2/templates/index.html (added)
-
tags/1.3.2/templates/link.php (added)
-
tags/1.3.2/templates/loop.php (added)
-
tags/1.3.2/templates/nonce.php (added)
-
tags/1.3.2/templates/product.php (added)
-
tags/1.3.2/templates/push.php (added)
-
tags/1.3.2/templates/remove.php (added)
-
tags/1.3.2/templates/sync.php (added)
-
tags/1.3.2/uninstall.php (added)
-
tags/1.3.2/vendor (added)
-
tags/1.3.2/vendor/autoload.php (added)
-
tags/1.3.2/vendor/classmap.php (added)
-
tags/1.3.2/vendor/clearcode (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/.gitignore (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/.htaccess (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/AUTHORS.txt (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/LICENSE.txt (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/README.md (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/composer.json (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/index.html (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/src (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/src/index.html (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/src/v6_1_3 (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/src/v6_1_3/Filterer.php (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/src/v6_1_3/Plugin.php (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/src/v6_1_3/Singleton.php (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/src/v6_1_3/Templater.php (added)
-
tags/1.3.2/vendor/clearcode/wordpress-framework/src/v6_1_3/index.html (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/.gitignore (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/.htaccess (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/AUTHORS.txt (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/LICENSE.txt (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/README.md (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/composer.json (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/index.html (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/src (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/src/index.html (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/src/v1_1_3 (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/src/v1_1_3/Settings.php (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/src/v1_1_3/index.html (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/src/v1_1_3/templates (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/src/v1_1_3/templates/index.html (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/src/v1_1_3/templates/input.php (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/src/v1_1_3/templates/menu.php (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/src/v1_1_3/templates/page.php (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/src/v1_1_3/templates/section.php (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/src/v1_1_3/templates/select.php (added)
-
tags/1.3.2/vendor/clearcode/wordpress-settings/src/v1_1_3/templates/textarea.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/Plugin.php (modified) (1 diff)
-
trunk/includes/WooCommerce.php (modified) (2 diffs)
-
trunk/plugin.php (modified) (1 diff)
-
trunk/templates/add.php (modified) (1 diff)
-
trunk/templates/noscript.php (deleted)
-
trunk/templates/product.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
piwik-pro/trunk/README.txt
r2980689 r2983740 3 3 Tags: Piwik PRO, Piwik, analytics, website stats, woocommerce 4 4 Requires at least: 5.7 5 Tested up to: 6. 3.16 Stable tag: 1.3. 15 Tested up to: 6.4 6 Stable tag: 1.3.2 7 7 Requires PHP: 7.4 8 8 License: GPLv3 … … 109 109 == Changelog == 110 110 111 = 1.3.2 = 112 **Release date: 25.10.2023** 113 114 * Fix: Fixed wrong product categories array escaping. 115 * Fix: Removed `<noscript>` tag from the `async` snippet. 116 111 117 = 1.3.1 = 112 118 **Release date: 18.10.2023** -
piwik-pro/trunk/includes/Plugin.php
r2971831 r2983740 85 85 self::render( 'async', $this->settings ), 86 86 $this->settings[ 'nonce' ] ? [ 'nonce' => $this->settings[ 'nonce' ] ] : [] 87 ) . self::render( 'noscript', $this->settings );87 ); 88 88 } 89 89 -
piwik-pro/trunk/includes/WooCommerce.php
r2971831 r2983740 89 89 $categories = []; 90 90 foreach ( get_the_terms( $product_id, 'product_cat' ) as $term ) 91 $categories[] = $term->name;91 $categories[] = esc_js( $term->name ); 92 92 93 93 switch ( count( $categories ) ) { 94 94 case 0: return ''; 95 95 case 1: return $categories[ 0 ]; 96 default : return json_encode( array_slice( $categories, 0, 5 ));96 default : return array_slice( $categories, 0, 5 ); 97 97 } 98 98 } … … 102 102 'sku' => esc_js( $product->get_sku() ?: ( '#' . $product->get_id() ) ), 103 103 'name' => esc_js( $product->get_title() ), 104 'category' => esc_js( $this->get_product_categories( $product->get_id()) ),104 'category' => $this->get_product_categories( $product->get_id() ), 105 105 'price' => floatval( $product->get_price() ), 106 106 'quantity' => intval( $quantity ) -
piwik-pro/trunk/plugin.php
r2980689 r2983740 5 5 * Plugin URI: https://wordpress.org/plugins/piwik-pro/ 6 6 * Description: Adds the Piwik PRO container (with tracking code) to your WordPress site. 7 * Version: 1.3. 17 * Version: 1.3.2 8 8 * Requires at least: 5.7 9 9 * Requires PHP: 7.4 -
piwik-pro/trunk/templates/add.php
r2971831 r2983740 29 29 sku: sku, 30 30 name: name, 31 category: '<?php echo $category; ?>',31 category: <?php echo json_encode( $category ); ?>, 32 32 price: price, 33 33 quantity: $('input.qty').val() ? $('input.qty').val() : 1 -
piwik-pro/trunk/templates/product.php
r2971831 r2983740 4 4 sku: '<?php echo $sku; ?>', 5 5 name: '<?php echo $name; ?>', 6 category: '<?php echo $category; ?>',6 category: <?php echo json_encode( $category ); ?>, 7 7 price: '<?php echo $price; ?>', 8 8 quantity: $( 'input.qty' ).val() ? $( 'input.qty' ).val() : 1
Note: See TracChangeset
for help on using the changeset viewer.