Title: swoopster's Replies | WordPress.org

---

# swoopster

  [  ](https://wordpress.org/support/users/swoopster/)

 *   [Profile](https://wordpress.org/support/users/swoopster/)
 *   [Topics Started](https://wordpress.org/support/users/swoopster/topics/)
 *   [Replies Created](https://wordpress.org/support/users/swoopster/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/swoopster/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/swoopster/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/swoopster/engagements/)
 *   [Favorites](https://wordpress.org/support/users/swoopster/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Profile Pictures not appearing until you refresh the browser](https://wordpress.org/support/topic/profile-pictures-not-appearing-until-you-refresh-the-browser/)
 *  [swoopster](https://wordpress.org/support/users/swoopster/)
 * (@swoopster)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/profile-pictures-not-appearing-until-you-refresh-the-browser/#post-1903361)
 * I too had this same problem and here is where it starts.
    I have a plugin called“
   Allow multiple accounts”, so what was happening is the User Photo plugin was 
   searching by email and found the wrong account. I was posting as using my user
   account which has the same email address as the admin account of which does not
   have a photo.
 * Here is the fix.
    line 103 of user-photo.php change
 *     ```
       $userid = (int)$wpdb->get_var("SELECT ID FROM $wpdb->users WHERE user_email = '" . mysql_escape_string($id_or_email) . "'");
       ```
   
 * TO
 *     ```
       $userid = (int)$wpdb->get_var("SELECT ID FROM $wpdb->users WHERE user_login = '" . mysql_escape_string(get_the_author()) . "' and user_email = '" . mysql_escape_string($id_or_email) . "'");
       ```
   

Viewing 1 replies (of 1 total)