WordPress.org

Ready to get started?Download WordPress

Forums

WP-FB-AutoConnect
[bug & solution] jfb_wp_avatar (1 post)

  1. Rob Vermeer
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic