Make WordPress Core

Opened 18 months ago

Last modified 18 months ago

#39415 new enhancement

Adding sms to list of allowed protocol

Reported by: rilwis Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8
Component: General Keywords:
Focuses: Cc:


Currently, the list of allowed protocols is provided in the function wp_allowed_protocols() . However, the list doesn’t have the "sms" protocol.

This is a new protocol and very useful for mobile users as they can send SMS when clicking the link. It’s very similar to "tel" protocol where users can call a person when clicking the link.


https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/SMSLinks/SMSLinks.html http://stackoverflow.com/questions/5721437/how-to-initiate-send-sms-from-a-html5-webpage-using-devices-native-functions

Change History (2)

#1 @agusmu
18 months ago

personally, I like this idea.

the problems are: (1) sms protocol is very buggy (2) it has different format for different devices (android, iphone, old iphone iOS7/8, etc) (3) it doesn't work on facebook in-app browser

#2 @rilwis
18 months ago

Thanks agusmu for your comment.

I think the format of the protocol is not a problem. All of them use the same "sms:" protocol, the only difference is the following text. I just mean we add the protocol, not for supporting the links.

If we add the protocol, the devices which support that (iPhone, Android) will be able to open the SMS/Phone app and do its job. Think about "skype:" protocol, it works only if your computer installed Skype.

This ticket is about supporting the protocol, not making it work. Making it work is the totally different story and in my opinion, is out of the scope of WordPress itself.

Note: See TracTickets for help on using tickets.