Function __global->ensure_protocol_suitability
Definitions
sources/urls.php
- Ensure a URL can be embedded within our webpage context.Currently this means making sure if we're on an HTTPS page, everything is HTTPS.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $url | string | No | No | required parameter | N/A | N/A | The URL to check |
Returns
- $append The fixed URL
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Ensure a URL can be embedded within our webpage context.Currently this means making sure if we're on an HTTPS page, everything is HTTPS.
*
* @param string $url The URL to check
* @return string $append The fixed URL
*/
function ensure_protocol_suitability(string $url) : string
* Ensure a URL can be embedded within our webpage context.Currently this means making sure if we're on an HTTPS page, everything is HTTPS.
*
* @param string $url The URL to check
* @return string $append The fixed URL
*/
function ensure_protocol_suitability(string $url) : string

