From 79d0884b9beac03e9877da1233352066133b924f Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Tue, 27 Sep 2016 21:40:01 +0800 Subject: [PATCH] Fix indentation --- core/um-short-functions.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 ***/