Warning is displayed for unregistered user
-
Hello, I am using your plugin, version 1.2.4 on WP 3.5.1, and when I try to use the get_avatar function to display avatars of unregistered users, I get two warnings displayed.
In the code, I pass the email as the first parameter, and the function actually returns the correct gravatar successfully, but I still get two warning messages:
Notice: Trying to get property of non-object in {path-to-my-wp}\wp-content\plugins\wp-user-avatar\wp-user-avatar.php on line 313
Notice: Trying to get property of non-object in {path-to-my-wp}\wp-content\plugins\wp-user-avatar\wp-user-avatar.php on line 314
Of course, on the production server these messages will be hidden, but I thought it is a good idea to let you know there’s a problem.
- The topic ‘Warning is displayed for unregistered user’ is closed to new replies.