mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
make sure get_current_screen method exists
This commit is contained in:
parent
df7e22006b
commit
cb37119a99
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ class WcGatewayModule implements ModuleInterface {
|
|||
$methods[] = $container->get( 'wcgateway.paypal-gateway' );
|
||||
$dcc_applies = $container->get( 'api.helpers.dccapplies' );
|
||||
|
||||
$screen = get_current_screen();
|
||||
$screen = ! function_exists('get_current_screen') ? (object) ['id' => 'front'] : get_current_screen();
|
||||
/**
|
||||
* The DCC Applies object.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue