mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Remove notices
This commit is contained in:
@@ -736,6 +736,9 @@ class UM_REST_API {
|
||||
* Modify User Profile
|
||||
*/
|
||||
function user_key_field( $user ) {
|
||||
|
||||
if( ! isset( $user->ID ) ) return;
|
||||
|
||||
if ( current_user_can( 'edit_users' ) && current_user_can( 'edit_user', $user->ID ) ) {
|
||||
$user = get_userdata( $user->ID );
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user