mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Fix is_editing check
This commit is contained in:
parent
40e4658576
commit
d3a318934f
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ class PayPalPaymentMethod extends AbstractPaymentMethodType {
|
||||||
*/
|
*/
|
||||||
private function is_editing(): bool {
|
private function is_editing(): bool {
|
||||||
if ( ! function_exists( 'get_current_screen' ) ) {
|
if ( ! function_exists( 'get_current_screen' ) ) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
$screen = get_current_screen();
|
$screen = get_current_screen();
|
||||||
return $screen && $screen->is_block_editor();
|
return $screen && $screen->is_block_editor();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue