mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix lint
This commit is contained in:
parent
a23dbb9c8b
commit
3c9043eeb6
1 changed files with 4 additions and 4 deletions
|
@ -67,10 +67,10 @@ class CartScriptParamsEndpoint implements EndpointInterface {
|
||||||
*/
|
*/
|
||||||
public function handle_request(): bool {
|
public function handle_request(): bool {
|
||||||
try {
|
try {
|
||||||
if ( ! $this->smart_button instanceof SmartButton ) {
|
if ( ! $this->smart_button instanceof SmartButton ) {
|
||||||
wp_send_json_error();
|
wp_send_json_error();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( is_callable( 'wc_maybe_define_constant' ) ) {
|
if ( is_callable( 'wc_maybe_define_constant' ) ) {
|
||||||
wc_maybe_define_constant( 'WOOCOMMERCE_CART', true );
|
wc_maybe_define_constant( 'WOOCOMMERCE_CART', true );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue