summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-09-03 22:56:43 +0200
committerChristian Grothoff <christian@grothoff.org>2020-09-03 22:56:43 +0200
commitbcedc09787d4af90742716b7a3dd0c80daf14450 (patch)
tree1ff49a080e8871b672b4c1bef812544431e2706d
parent530533c8458953a4b603bbb3f392bab30434d3a1 (diff)
downloadwoocommerce-taler-bcedc09787d4af90742716b7a3dd0c80daf14450.tar.gz
woocommerce-taler-bcedc09787d4af90742716b7a3dd0c80daf14450.tar.bz2
woocommerce-taler-bcedc09787d4af90742716b7a3dd0c80daf14450.zip
compliance work
-rw-r--r--plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php14
1 files 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 (__('<strong>GNU Taler</strong> requires <strong>WooCommerce</strong> plugin to work. Please activate it or install it from <a href="http://wordpress.org/plugins/woocommerce/" target="_blank">here</a>.<br /><br />Back to the WordPress <a href="%s">Plugins page</a>.', 'gnutaler' ) ),
+ wp_die( sprintf ( wp_kses (__('<strong>GNU Taler</strong> requires <strong>WooCommerce</strong> plugin to work. Please activate it or install it from <a href="http://wordpress.org/plugins/woocommerce/" target="_blank">here</a>.<br /><br />Back to the WordPress <a href="%s">Plugins page</a>.', '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( __( '<a href="%s">View Log<a>', 'gnutaler' ) ),
+ $label .= ' | ' . sprintf( wp_kses( __( '<a href="%s">View Log<a>', '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 <a href="%s">%s</a> to obtain the refund.', 'gnutaler' ) ),
+ $message_body = sprintf( wp_kses( __( 'Please open the page <a href="%s">%s</a> 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 <a href="mailto:%1s">%2$s</a> 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 <a href="mailto:%1s">%2$s</a> and ensure the customer clicks on %3$s to obtain the refund.', 'gnutaler' ),
+ array('a' => array ('href' => array() ) ) ),
$email,
$email,
$refund_url) );