mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Fix skip empty key logic
This commit is contained in:
parent
e38bd8f503
commit
45c69350e3
1 changed files with 3 additions and 3 deletions
|
@ -249,10 +249,10 @@ class VaultingModule implements ModuleInterface {
|
|||
$timestamp = time();
|
||||
|
||||
foreach ( $customers as $id ) {
|
||||
$metadata_exist = metadata_exists( 'user', $id, 'ppcp-vault-token' );
|
||||
$tokens = array_filter( get_user_meta( $id, 'ppcp-vault-token' ) );
|
||||
$skip_empty_key_migration = apply_filters( 'ppcp_skip_payment_tokens_empty_key_migration', true );
|
||||
if ( ! $metadata_exist && $skip_empty_key_migration ) {
|
||||
return;
|
||||
if ( empty( $tokens ) && $skip_empty_key_migration ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue