diff --git a/core/um-short-functions.php b/core/um-short-functions.php index c6872eb0..e2828c42 100644 --- a/core/um-short-functions.php +++ b/core/um-short-functions.php @@ -1488,6 +1488,18 @@ function um_fetch_user( $user_id ) { return $protocol; } + /** + * Set SSL to media URI + */ + function um_secure_media_uri( $url ){ + + if( is_ssl() ){ + $url = str_replace('http:', 'https:', $url ); + } + + return $url; + } + /** * Check if meta_value exists * @param string $key