PluginProbe
Ever Compare – Products Compare Plugin for WooCommerce / trunk
Ever Compare – Products Compare Plugin for WooCommerce vtrunk
1.3.7 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 trunk 1.0.0 1.0.1 1.0.2 All 31 releases
← All changes | includes/classes/Admin/Notices.php +11 -1 1.2.4trunk View file →
@@ -1,6 +1,8 @@
1 1 <?php
2 2 namespace EverCompare\Admin;
3 +
4 +defined( 'ABSPATH' ) || exit;
3 5 /**
4 6 * Notices handlers class
5 7 */
6 8 class Notices {
@@ -47,8 +49,12 @@
47 49 if( ! current_user_can( 'activate_plugins' ) ) {
48 50 return;
49 51 }
50 52 $activation_url = wp_nonce_url( 'plugins.php?action=activate&amp;plugin=' . $woocommerce . '&amp;plugin_status=all&amp;paged=1&amp;s', 'activate-plugin_' . $woocommerce );
53 + /*
54 + * translators: %1$s: strong tag start
55 + * translators: %2$s: strong tag end
56 + */
51 57 $message = sprintf( __( '%1$sEver Compare%2$s requires %1$s"WooCommerce"%2$s plugin to be active. Please activate WooCommerce to continue.', 'ever-compare' ), '<strong>', '</strong>');
52 58 $button_text = __( 'Activate WooCommerce', 'ever-compare' );
53 59 } else {
54 60 if( ! current_user_can( 'activate_plugins' ) ) {
@@ -54,13 +60,17 @@
54 60 if( ! current_user_can( 'activate_plugins' ) ) {
55 61 return;
56 62 }
57 63 $activation_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=woocommerce' ), 'install-plugin_woocommerce' );
64 + /*
65 + * translators: %1$s: strong tag start
66 + * translators: %2$s: strong tag end
67 + */
58 68 $message = sprintf( __( '%1$sEver Compare%2$s requires %1$s"WooCommerce"%2$s plugin to be installed and activated. Please install WooCommerce to continue.', 'ever-compare' ), '<strong>', '</strong>' );
59 69 $button_text = __( 'Install WooCommerce', 'ever-compare' );
60 70 }
61 71 $button = '<p><a href="' . $activation_url . '" class="button-primary">' . $button_text . '</a></p>';
62 - printf( '<div class="error"><p>%1$s</p>%2$s</div>', __( $message ), $button );
72 + printf( '<div class="error"><p>%1$s</p>%2$s</div>', wp_kses_post($message) , wp_kses_post($button) );
63 73 }
64 74
65 75
66 76 }