mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
🎨 Remove unnecessary condition
This commit is contained in:
parent
f3f6765ac3
commit
6ee4a40e18
2 changed files with 3 additions and 4 deletions
|
@ -69,7 +69,6 @@ class DataToAppleButtonScripts {
|
|||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the appropriate admin data to send to ApplePay script
|
||||
*
|
||||
|
@ -254,7 +253,7 @@ class DataToAppleButtonScripts {
|
|||
|
||||
return array(
|
||||
'sdk_url' => $this->sdk_url,
|
||||
'is_debug' => defined( 'WP_DEBUG' ) && WP_DEBUG ? true : false,
|
||||
'is_debug' => defined( 'WP_DEBUG' ) && WP_DEBUG,
|
||||
'is_admin' => true,
|
||||
'is_enabled' => $is_enabled,
|
||||
'preferences' => array(
|
||||
|
|
|
@ -422,7 +422,7 @@ class Button implements ButtonInterface {
|
|||
|
||||
return array(
|
||||
'environment' => $this->environment->current_environment_is( Environment::SANDBOX ) ? 'TEST' : 'PRODUCTION',
|
||||
'is_debug' => defined( 'WP_DEBUG' ) && WP_DEBUG ? true : false,
|
||||
'is_debug' => defined( 'WP_DEBUG' ) && WP_DEBUG,
|
||||
'is_enabled' => $is_enabled,
|
||||
'sdk_url' => $this->sdk_url,
|
||||
'button' => array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue