diff --git a/core/um-short-functions.php b/core/um-short-functions.php index b7cde551..414c0270 100644 --- a/core/um-short-functions.php +++ b/core/um-short-functions.php @@ -479,17 +479,17 @@ function um_user_ip() { } -function um_profile_id() { + function um_profile_id() { - if ( um_get_requested_user() ) { - return um_get_requested_user(); - } else if ( is_user_logged_in() && get_current_user_id() ) { - return get_current_user_id(); + if ( um_get_requested_user() ) { + return um_get_requested_user(); + } else if ( is_user_logged_in() && get_current_user_id() ) { + return get_current_user_id(); + } + + return 0; } - return 0; -} - /*** *** @Check that temp upload is valid ***/