From bcedc09787d4af90742716b7a3dd0c80daf14450 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 3 Sep 2020 22:56:43 +0200 Subject: compliance work --- .../class-wc-gnutaler-gateway.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php index de2a6b4..094ebd9 100644 --- a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php +++ b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php @@ -93,7 +93,8 @@ function gnutaler_init_gateway_class() // Check if WooCommerce is active, if not then deactivate and show error message if ( ! in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ), true ) ) { deactivate_plugins( plugin_basename( __FILE__ ) ); - wp_die( sprintf ( wp_kses (__('GNU Taler requires WooCommerce plugin to work. Please activate it or install it from here.

Back to the WordPress Plugins page.', 'gnutaler' ) ), + wp_die( sprintf ( wp_kses (__('GNU Taler requires WooCommerce plugin to work. Please activate it or install it from here.

Back to the WordPress Plugins page.', 'gnutaler' ), + array('strong' => array(), 'a' => array ('href' => array(), '_target' => array() ) ) ), get_admin_url(null, 'plugins.php') ) ); } @@ -129,7 +130,8 @@ function gnutaler_init_gateway_class() $log_url = add_query_arg( 'tab', 'logs', add_query_arg( 'page', 'wc-status', admin_url( 'admin.php' ) ) ); $log_key = 'gnutaler-' . sanitize_file_name( wp_hash( 'gnutaler' ) ) . '-log'; $log_url = add_query_arg( 'log_file', $log_key, $log_url ); - $label .= ' | ' . sprintf( wp_kses( __( 'View Log', 'gnutaler' ) ), + $label .= ' | ' . sprintf( wp_kses( __( 'View Log', 'gnutaler' ), + array('a' => array ('href' => array() ) ) ), esc_url( $log_url ) ); } @@ -173,7 +175,7 @@ function gnutaler_init_gateway_class() 'description' => __( 'Set the text the customer will see when confirming payment. %s will be substituted with the order number. (Example: MyShop #%s)', 'gnutaler' ), 'default' => 'WooTalerShop #%s', ), - 'GNU_Taler_Debug_log' => array( + 'wc_gnutaler_debug' => array( 'title' => __( 'Debug Log', 'gnutaler' ), 'label' => $log_label, 'description' => __( 'Enable debug-level logging for the GNU Taler payment plugin', 'gnutaler' ), @@ -768,7 +770,8 @@ function gnutaler_init_gateway_class() $mailer = $woocommerce->mailer(); /* translators: both arguments are the URL to provide to the customer to obtain the refund */ - $message_body = sprintf( wp_kses( __( 'Please open the page %s to obtain the refund.', 'gnutaler' ) ), + $message_body = sprintf( wp_kses( __( 'Please open the page %s to obtain the refund.', 'gnutaler' ), + array('a' => array ('href' => array() ) ) ), $refund_url, $refund_url ); /* translators: first argument is the refund amount, second the number of the order */ @@ -787,7 +790,8 @@ function gnutaler_init_gateway_class() else { /* translators: first and second argument are the e-mail of the customer, third is the refund URL the customer needs to be provided. */ - $wc_order->add_order_note( sprintf ( wp_kses (__('Refund granted, but failed to send customer e-mail notification! Please contact %2$s and ensure the customer clicks on %3$s to obtain the refund.', 'gnutaler' ) ), + $wc_order->add_order_note( sprintf ( wp_kses (__('Refund granted, but failed to send customer e-mail notification! Please contact %2$s and ensure the customer clicks on %3$s to obtain the refund.', 'gnutaler' ), + array('a' => array ('href' => array() ) ) ), $email, $email, $refund_url) ); -- cgit v1.2.3