Plugin soft rejected please help us

Our new plugin got soft rejection and reason is quiet simple but I am unable to grasp. Here is the response from the reviewer.

“Use protocol relative URLs” and its for Google Map. Now my question is how I can use that relative URL now ? I was using like http://maps.google.com etc earlier now what should I change now ?

Also what for other Google services like fonts and else etc ?

Help me on this please.

Thanks

If you use http://maps.google.com then on a https: website, then the green padlock (in the browser’s address bar will not be displayed, because the website will not be 100% secure).

To avoid this, you should use protocol relative URLs something like this:

// Enqueue Google Maps API
$api_url = is_ssl() ? 'https://maps-api-ssl.google.com' : 'http://maps.googleapis.com';

Later edit: the same for fonts and other external resources.

1 Like