updated plugin Easy Digital Downloads
version 3.1.1.2
This commit is contained in:
@ -48,7 +48,7 @@ function connect_settings_field() {
|
||||
<?php
|
||||
echo wp_kses( sprintf(
|
||||
/* Translators: %1$s opening <strong> tag; %2$s closing </strong> tag */
|
||||
__( '%1$sConnection failure:%2$s Please ensure browser popups are enabled then click the button below to connect again. If you continue to experience this error, please contact support.', 'easy-digital-downloads' ),
|
||||
__( '%1$sConnection failure:%2$s This is most likely due to your browser blocking the connection. Most store owners have the best success with Chrome, but for some reason, a few select browsers/devices prevent the connection from EDD and PayPal from working. You might have to enable popups, then restart your browser. If that doesn\'t work, please try a different browser or device and see if that works. If you continue to experience this error, please contact support.', 'easy-digital-downloads' ),
|
||||
'<strong>',
|
||||
'</strong>'
|
||||
), array( 'strong' => array() ) );
|
||||
@ -114,7 +114,8 @@ function process_connect() {
|
||||
'country_code' => edd_get_shop_country(),
|
||||
'currency_code' => edd_get_currency(),
|
||||
'return_url' => get_settings_url()
|
||||
) )
|
||||
) ),
|
||||
'user-agent' => 'Easy Digital Downloads/' . EDD_VERSION . '; ' . get_bloginfo( 'name' ),
|
||||
) );
|
||||
|
||||
if ( is_wp_error( $response ) ) {
|
||||
@ -245,7 +246,8 @@ function get_and_save_credentials() {
|
||||
'grant_type' => 'authorization_code',
|
||||
'code' => $_POST['auth_code'],
|
||||
'code_verifier' => $partner_details->nonce
|
||||
)
|
||||
),
|
||||
'user-agent' => 'Easy Digital Downloads/' . EDD_VERSION . '; ' . get_bloginfo( 'name' ),
|
||||
) );
|
||||
|
||||
if ( is_wp_error( $response ) ) {
|
||||
@ -272,7 +274,8 @@ function get_and_save_credentials() {
|
||||
'Authorization' => sprintf( 'Bearer %s', $body->access_token ),
|
||||
'Content-Type' => 'application/json',
|
||||
'timeout' => 15
|
||||
)
|
||||
),
|
||||
'user-agent' => 'Easy Digital Downloads/' . EDD_VERSION . '; ' . get_bloginfo( 'name' ),
|
||||
) );
|
||||
|
||||
if ( is_wp_error( $response ) ) {
|
||||
@ -748,7 +751,8 @@ function get_merchant_status( $merchant_id, $nonce = '' ) {
|
||||
'mode' => edd_is_test_mode() ? API::MODE_SANDBOX : API::MODE_LIVE,
|
||||
'merchant_id' => $merchant_id,
|
||||
'nonce' => $nonce
|
||||
) )
|
||||
) ),
|
||||
'user-agent' => 'Easy Digital Downloads/' . EDD_VERSION . '; ' . get_bloginfo( 'name' ),
|
||||
) );
|
||||
|
||||
$response_code = wp_remote_retrieve_response_code( $response );
|
||||
|
Reference in New Issue
Block a user