atom_service_url_filter

Definition:
function atom_service_url_filter($url)

Secure URL, if available or the given URL.

Parameters

  • string $url: Complete URL path with transport.

Return values

returns:Secure or regular URL path.

Source code

function atom_service_url_filter($url)

{

	if ( url_is_accessable_via_ssl($url) )

		return preg_replace( '/^http:\/\//', 'https://',  $url );

	else

		return $url;

}

541

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: