• Resolved Ivijan-Stefan Stipic

    (@ivijanstefan)


    Hi, I will save your time and give you copy/past soluion for this!

    Inside wp-user-avatar/includes/class-wp-user-avatar-shortcode.php, inside public function wpua_edit_shortcode replace this

    $valid_user = current_user_can('edit_user', $get_user) ? $get_user : null;

    to this

    $valid_user = current_user_can('edit_user', $get_user->ID) ? $get_user : null;

    Also, capability edit_user need to be edit_users or include both of them.

    Have a nice work and we waiting new update!

    Thanks! ??

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Notice: Object of class WP_User could not be converted’ is closed to new replies.