WebDevStudios / StartBox

An incredibly powerful theme framework for WordPress. Download here: http://wpstartbox.com/startbox.zip. Get our sample child theme here: http://github.com/webdevstudios/StartBox-Child —
http://wpstartbox.com
GNU General Public License v2.0
170 stars 41 forks source link

Comment forms don't respect the "show avatars" setting in Discussion #55

Open Pypeline opened 11 years ago

Pypeline commented 11 years ago

All you need is a check for get_option('show_avatars') in 2 places, the form for filling out a comment and the form for displaying a comment.

As of SB 2.7.1 in /includes/functions/comment_format.php you'll want to put this check about lines 69 (just before echo getavatar...) and 113 (just before the $avatar variables start getting defined). In the second instance, you'll either have to set $avatar to blank or do an else where you just echo the element. Or something else I didn't think of.