Support » Plugin: WP Social AutoConnect » [Plugin: WP-FB-AutoConnect] [bug & solution] jfb_wp_avatar

  • There was a problem with the avatars when I logged in. All avatars changed to my own avatar even if I were not the author.

    When I looked at the function “jfb_wp_avatar” in main.php I saw the problem.
    $user_id = get_user_by('email', $id_or_email ); sets $user_id as an object with all the users info and not just the id.

    Solution:

    else if(is_string($id_or_email)) {
    	   $user = get_user_by('email', $id_or_email );
    	   $user_id = $user->ID;
    	}

    http://wordpress.org/extend/plugins/wp-fb-autoconnect/

  • The topic ‘[Plugin: WP-FB-AutoConnect] [bug & solution] jfb_wp_avatar’ is closed to new replies.