Phone number disformatted
-
Hi and first of all, thanks for this useful plugin.
There seems to be a small problem with contact telephone number escaping… in the href attribute, the number looks something like this:
tel:https://091234567
. I think it’s the esc_url function in the classified-contact-phone.php template. The function seems to work as expected if you include the ‘tel:’ part inside of if (and not outside.) Then the telephone number passes as a valid url.Here’s the tweaked snippet that fixed it for me:
<a href="<?php echo esc_url( 'tel:' . $contact->url ); ?>" target="_blank" rel="nofollow"><?php echo esc_html( $contact->url ); ?></a>
Hope this helps somebody else with same problem!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Phone number disformatted’ is closed to new replies.