summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-21 00:17:40 +0200
committerChristian Grothoff <christian@grothoff.org>2020-10-21 00:17:40 +0200
commit5cf620f79d31a21d48150a7ed8415cef79cc53d5 (patch)
treefe45d3765120301de0ece6435a4824f4073d13ea
parent7f5e4355ca96b0c6110c98d286fde207dc34f7dc (diff)
downloadwoocommerce-taler-5cf620f79d31a21d48150a7ed8415cef79cc53d5.tar.gz
woocommerce-taler-5cf620f79d31a21d48150a7ed8415cef79cc53d5.tar.bz2
woocommerce-taler-5cf620f79d31a21d48150a7ed8415cef79cc53d5.zip
fix typo
-rw-r--r--plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php4
-rw-r--r--snippets/oidc-woocommerce.php4
2 files changed, 5 insertions, 3 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 b80530c..f5c01a6 100644
--- a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
+++ b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
@@ -422,7 +422,7 @@ function gnutaler_init_gateway_class() {
$args['headers'][] = 'Content-type: application/json';
$args['compress'] = true;
}
- $this->debug( 'Issuing HTTP ' . $method . ' request to ' . $url . ' with options ' . $args );
+ $this->debug( 'Issuing HTTP ' . $method . ' request to ' . $url . ' with options ' . wp_json_encode( $args ) );
switch ( $method ) {
case 'POST':
@@ -453,7 +453,7 @@ function gnutaler_init_gateway_class() {
);
}
$http_code = wp_remote_retrieve_response_code( $response );
- $body = $wp_remote_retrieve_body( $response );
+ $body = wp_remote_retrieve_body( $response );
$this->debug(
sprintf(
/* translators: first placeholder is the HTTP status code, second the body of the HTTP reply */
diff --git a/snippets/oidc-woocommerce.php b/snippets/oidc-woocommerce.php
index ba9a310..1178037 100644
--- a/snippets/oidc-woocommerce.php
+++ b/snippets/oidc-woocommerce.php
@@ -41,7 +41,9 @@ add_action(
// (checkout) page after OIDC provided the data.
add_action(
'woocommerce_before_checkout_billing_form',
- array( $login_form, 'handle_redirect_cookie' )
+ function () use ( $login_form ) {
+ handle_redirect_cookie ( $login_form );
+ }
);
}