I am using the Amazing Grace theme, thanks for building such a nice theme.
I have found a small bug with the theme though. Even if I setup my blog to use Gravatar's option monsterID (through the WordPress settings), the theme keeps showing the "mystery man" if the person hasnt specifically setup an avatar. Most people do not setup an avatar, and I do not like the mystery man – it does not differentiate between people.
The problem is caused because when you call the get_avatar function from the show_avatar function, you pass 3 parameters, the third one being $default which is populated with a default of your choice. If you pass only 2 paramters, wordpress will automatically pickup default from what is selected in wordpress settings. In fact I do not understand why show_avatar function is required at all – the theme comments.php can directly call get_avatar function the way default theme does by sending two parameters.
I have fixed the problem by removing the third parameter. Please share your thoughts.
Vladimir’s WordPress Forum
Avatar bug
12:36
15 January, 2009
Hardeep Singh
Hi
I am using the Amazing Grace theme, thanks for building such a nice theme.
I have found a small bug with the theme though. Even if I setup my blog to use Gravatar's option monsterID (through the WordPress settings), the theme keeps showing the "mystery man" if the person hasnt specifically setup an avatar. Most people do not setup an avatar, and I do not like the mystery man – it does not differentiate between people.
The problem is caused because when you call the get_avatar function from the show_avatar function, you pass 3 parameters, the third one being $default which is populated with a default of your choice. If you pass only 2 paramters, wordpress will automatically pickup default from what is selected in wordpress settings. In fact I do not understand why show_avatar function is required at all – the theme comments.php can directly call get_avatar function the way default theme does by sending two parameters.
I have fixed the problem by removing the third parameter. Please share your thoughts.
Regards
Hardeep
http://blog.Hardeep.name