Skip to content

Commit 14380b8

Browse files
committed
Log in case of error
1 parent c1cbad1 commit 14380b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

woocommerce-gateway-monei.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,14 @@ function delete_payment_methods_transients() {
5151
global $wpdb;
5252

5353
// Delete transients that match the pattern
54-
$wpdb->query(
54+
$result = $wpdb->query(
5555
"DELETE FROM {$wpdb->options}
5656
WHERE option_name LIKE '_transient_payment_methods_%'
5757
OR option_name LIKE '_transient_timeout_payment_methods_%'"
5858
);
59+
if ($result === false) {
60+
error_log('MONEI: Failed to delete payment method transients');
61+
}
5962
}
6063

6164
/**

0 commit comments

Comments
 (0)