- fixed problem with urls for upload images

This commit is contained in:
yura_nalivaiko
2018-04-24 16:58:31 +03:00
parent e34972b59f
commit 87a86b2eae
+3
View File
@@ -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 );