diff --git a/includes/um-short-functions.php b/includes/um-short-functions.php index b70e18c8..12011f7b 100644 --- a/includes/um-short-functions.php +++ b/includes/um-short-functions.php @@ -710,6 +710,9 @@ function um_profile_id() { * @return bool|string */ function um_is_temp_upload( $url ) { + if( is_string( $url ) ) { + $url = trim($url); + } if (filter_var( $url, FILTER_VALIDATE_URL ) === false) $url = realpath( $url );