Fix for displaying Gravatars in Arras’s Tabbed Widget

Today I noticed that the Tabbed Sidebar widget that comes with the Arras theme does not display Gravatars correctly in its “Comments” tab. Gravatars of local registered users show up [...]

Today I noticed that the Tabbed Sidebar widget that comes with the Arras theme does not display Gravatars correctly in its “Comments” tab. Gravatars of local registered users show up fine but any other come up as the default avatar.

It turns out that the fix is extremely simple. It involved editing the file arras-theme/library/widgets.php. Open the file in your favorite editor and fine the line:

                                                echo get_avatar($comment->user_id, 36);

It is the only line in the file that calls get_avatar() so you can search for the name of the function. Once you have found the line, change it to the following:

                                                echo get_avatar($comment, 36);

Save the file and from now on, the proper Gravatars will be displayed in the “Comments” tab of the widget.

VN:F [1.9.13_1145]
Rating: 5.0/5 (5 votes cast)
VN:F [1.9.13_1145]
Rating: +5 (from 5 votes)
Fix for displaying Gravatars in Arras's Tabbed Widget, 5.0 out of 5 based on 5 ratings