From d45a11172d07f119c182c0e3ddf7161641e680ee Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Tue, 10 Jan 2017 22:04:51 +0800 Subject: [PATCH] Remove notice --- core/um-files.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/um-files.php b/core/um-files.php index ae3175b4..06d46d95 100644 --- a/core/um-files.php +++ b/core/um-files.php @@ -531,6 +531,10 @@ class UM_Files { ***/ function new_user_upload( $user_id, $source, $key ) { + if( ! is_numeric( $user_id ) ){ + wp_die( __("Invalid user ID: ".json_encode( $user_id )." ",'ultimatemember') ); + } + $user_id = trim( $user_id ); // if he does not have uploads dir yet