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