Skip to content

Commit ae0d143

Browse files
committed
Use is_email
1 parent bb8af07 commit ae0d143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ppcp-wc-gateway/src/WCGatewayModule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ private function register_contact_handlers(): void {
10231023
$email = $wc_order->get_meta( PayPalGateway::CONTACT_EMAIL_META_KEY );
10241024
$phone = $wc_order->get_meta( PayPalGateway::CONTACT_PHONE_META_KEY );
10251025

1026-
if ( $email && is_string( $email ) ) {
1026+
if ( $email && is_email( $email ) ) {
10271027
$wc_order->set_billing_email( $email );
10281028
}
10291029
if ( $phone && is_string( $phone ) ) {

0 commit comments

Comments
 (0)