Fix buttons loading in block editor

This commit is contained in:
Alex P 2024-01-05 09:28:57 +02:00
parent fc1b5e9a1e
commit 40e4658576
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -606,7 +606,7 @@ document.querySelector("#payment").before(document.querySelector("#ppcp-messages
case 'product':
return $smart_button_enabled_for_current_location || $smart_button_enabled_for_mini_cart;
default:
return $smart_button_enabled_for_mini_cart;
return $smart_button_enabled_for_mini_cart || $this->is_block_editor();
}
}