Skip to content

Commit 555e9e1

Browse files
committed
Merge branch 'release/2.0.7'
2 parents 9686fae + c8f0538 commit 555e9e1

16 files changed

Lines changed: 88 additions & 885 deletions

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
"phpcs -p -s"
2525
]
2626
}
27-
}
27+
}

conversion-tracking.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<?php
22
/*
33
Plugin Name: WooCommerce Conversion Tracking
4-
Plugin URI: https://wedevs.com/products/plugins/woocommerce-conversion-tracking/
4+
Plugin URI: https://wedevs.com/woocommerce-conversion-tracking/
55
Description: Adds various conversion tracking codes to cart, checkout, registration success and product page on WooCommerce
6-
Version: 2.0.6
7-
Author: Tareq Hasan
8-
Author URI: https://tareq.co/
6+
Version: 2.0.7
7+
Author: weDevs
8+
Author URI: https://wedevs.com/?utm_source=ORG_Author_URI_WCCT
99
License: GPL2
1010
WC requires at least: 2.3
11-
WC tested up to: 3.8.1
11+
WC tested up to: 4.0.1
1212
*/
1313

1414
/**
15-
* Copyright (c) 2017 Tareq Hasan (email: tareq@wedevs.com). All rights reserved.
15+
* Copyright (c) 2020 Tareq Hasan (email: tareq@wedevs.com). All rights reserved.
1616
*
1717
* Released under the GPL license
1818
* http://www.opensource.org/licenses/gpl-license.php
@@ -293,7 +293,7 @@ public function check_woocommerce_exist() {
293293
if ( ! function_exists( 'WC' ) ) {
294294
?>
295295
<div class="error notice is-dismissible">
296-
<p><?php echo wp_kses_post( __( '<b>Woocommerce conversion tracking</b> requires <a target="_blank" href="https://wordpress.org/plugins/woocommerce/">Woocommerce</a>', 'woocommerce-conversion-tracking' ) );?></p>
296+
<p><?php echo __( '<b>Woocommerce conversion tracking</b> requires <a target="_blank" href="https://wordpress.org/plugins/woocommerce/">Woocommerce</a>', 'woocommerce-conversion-tracking' ); ?></p>
297297
</div>
298298
<?php
299299
}
@@ -326,7 +326,7 @@ public function happy_addons_ads_banner() {
326326
<img src="<?php echo esc_attr( WCCT_ASSETS . '/images/happy-addons.png' )?>" alt="">
327327
</div>
328328
<div class="wcct-message-content">
329-
<p><?php echo wp_kses_post( __( 'Reach beyond your imagination in creating web pages. <strong> Try Happy Addons for Elementor to shape your dream.</strong> 😊') ) ?></p>
329+
<p><?php echo __( 'Reach beyond your imagination in creating web pages. <strong> Try Happy Addons for Elementor to shape your dream.</strong> 😊' ); ?></p>
330330
</div>
331331
<div class="wcct-message-action">
332332
<a href="" id="wcct-install-happ-addons" class="button button-primary"> <i class="dashicons dashicons-update wcct-update-icon"></i> Install Now For FREE</a>

includes/class-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ public function show_navigation() {
104104

105105
$html .= '</h2>';
106106

107-
echo wp_kses_post( $html );
107+
echo $html;
108108
}
109109
}

includes/class-ajax.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class WCCT_Ajax {
1111
public function __construct() {
1212
add_action( 'wp_ajax_wcct_save_settings', array( $this, 'wcct_save_settings' ) );
1313
add_action( 'wp_ajax_activate_happy_addons', array( $this, 'wcct_install_happy_addons' ) );
14-
add_action( 'wp_ajax_wcct_dismissable_notice', array( $this, 'wcct_dismissable_notice' ) );
1514
}
1615

1716
/**
@@ -99,19 +98,4 @@ public function wcct_install_happy_addons() {
9998
'message' => __( 'Successfully installed and activate,', 'woocommerce-conversion-tracking' )
10099
]);
101100
}
102-
103-
/**
104-
* Dismissable notice
105-
*
106-
* @return object
107-
*/
108-
public function wcct_dismissable_notice() {
109-
if ( ! current_user_can( 'manage_options' ) ) {
110-
return;
111-
}
112-
113-
update_option( 'wcct_dismissable_notice', 'closed' );
114-
115-
wp_send_json_success();
116-
}
117101
}

includes/class-event-dispatcher.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ function __construct() {
3636
add_action( 'pre_get_posts', array( $this, 'product_search' ) );
3737

3838
// Wishlist Event
39-
4039
add_filter( 'yith_wcwl_added_to_wishlist', array( $this, 'product_wishlist' ) );
41-
4240
add_action( 'woocommerce_wishlist_add_item', array( $this, 'product_wishlist' ) );
4341
}
4442

0 commit comments

Comments
 (0)