mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +09:00
- fixed problem with urls for upload images
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user