Skip to content

Commit ede88f9

Browse files
committed
Removed invalid wp_kses and welcome 2.0 notice
1 parent c6aa1d4 commit ede88f9

11 files changed

Lines changed: 24 additions & 825 deletions

conversion-tracking.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)