diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2018-06-08 10:09:24 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2018-06-08 10:09:24 -0400 |
commit | a6b006c0f1ef757f23375f7906193370337d8bd7 (patch) | |
tree | 4467c6423b2c54e6ef8c3e79241a833fb17833a5 /plugins/jetpack/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-universal.php | |
parent | Update akismet 4.0.7 (diff) | |
download | blogs-gentoo-a6b006c0f1ef757f23375f7906193370337d8bd7.tar.gz blogs-gentoo-a6b006c0f1ef757f23375f7906193370337d8bd7.tar.bz2 blogs-gentoo-a6b006c0f1ef757f23375f7906193370337d8bd7.zip |
Update jetpack 6.2
Diffstat (limited to 'plugins/jetpack/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-universal.php')
-rw-r--r-- | plugins/jetpack/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-universal.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/jetpack/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-universal.php b/plugins/jetpack/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-universal.php index ee5dc5cf..8482bb29 100644 --- a/plugins/jetpack/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-universal.php +++ b/plugins/jetpack/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-universal.php @@ -136,8 +136,9 @@ class Jetpack_WooCommerce_Analytics_Universal { /** * Adds the product ID to the remove product link (for use by remove_from_cart above) if not present * - * @param string $url url. - * @param string $key key. + * @param string $url Full HTML a tag of the link to remove an item from the cart. + * @param string $key Unique Key ID for a cart item. + * * @return mixed. */ public function remove_from_cart_attributes( $url, $key ) { @@ -149,12 +150,11 @@ class Jetpack_WooCommerce_Analytics_Universal { $product = $item['data']; $new_attributes = sprintf( - 'href="%s" data-product_id="%s" data-product_sku="%s"', - esc_attr( $url ), - esc_attr( $product->get_id() ), - esc_attr( $product->get_sku() ) + '" data-product_id="%s">', + esc_attr( $product->get_id() ) ); - $url = str_replace( 'href=', $new_attributes, $url ); + + $url = str_replace( '">', $new_attributes, $url ); return $url; } |