From 87a86b2eae22263842fd2070bf187b6a6f05e946 Mon Sep 17 00:00:00 2001 From: yura_nalivaiko Date: Tue, 24 Apr 2018 16:58:31 +0300 Subject: [PATCH] - fixed problem with urls for upload images --- includes/um-short-functions.php | 3 +++ 1 file changed, 3 insertions(+) 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 );