WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#11902 closed feature request (worksforme)

Add custom gravatar support to WP core

Reported by: archon810 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.9.1
Component: Comments Keywords: close
Focuses: Cc:

Description

I think it's time WP gets its own in-core custom gravatar support. It is a common and sensible enough request from many users that it kind of surprises me that WP still doesn't have it in the core.

Instead (and, of course, it's a completely acceptable solution) people resort to solutions like http://www.kremalicious.com/2008/12/how-to-set-a-custom-gravatar-image-in-wordpress-27.

Having space for a url in the Discusson/Gravatar section would solve this problem for most people.

I know some of you might say it belongs in the plugins or functions.php section but how is it any different from having the "default" value or any of the other ones in the list?

Thoughts?
Thank you.

Change History (7)

#1 @scribu
11 years ago

  • Keywords close added

I think a much more useful feature would be to let users upload their own gravatar, without leaving their WordPress profile. But that's a different feature request.

Suggest closing as worksforme.

#2 in reply to: ↑ description @filosofo
11 years ago

Replying to archon810:

Having space for a url in the Discusson/Gravatar section would solve this problem for most people.

I know some of you might say it belongs in the plugins or functions.php section but how is it any different from having the "default" value or any of the other ones in the list?

Just to be clear: you're just suggesting making a way to define the default gravatar from the admin, right?

#3 @archon810
11 years ago

  • Cc admin@… added

Hrm, for some reason I wasn't receiving email notifications on these updates... odd.

scribu, I don't think this has anything to do with users - this is about setting a default site-wide gravatar for commenters that don't have a gravatar set up. It would either add or replace the default option that wordpress provides on /wp-admin/options-discussion.php (wavatar, identicon, etc).

Specifically, the url in the ticket description points to an "aftermarket" solution which I resorted to for now.

filosofo, the option I am suggesting would either completely replace the default wp gravatar or simply add a field for a custom user avatar.

I hope this was more clear.

Thanks.

#4 follow-up: @strider72
11 years ago

Is there an easy way for a theme to set a default Gravatar? That, at least, would make a lot of sense. I think this is a theme issue more than a WP Core issue.

#5 in reply to: ↑ 4 @nacin
11 years ago

  • Component changed from General to Comments

Replying to strider72:

Is there an easy way for a theme to set a default Gravatar? That, at least, would make a lot of sense. I think this is a theme issue more than a WP Core issue.

Yes. You can't override a pluggable function in a theme (pluggable.php is deliberately included after all plugins but before theme functions.php).

But, you can easily use the $default argument when calling get_avatar(). Alternatively, you can use the avatar_defaults filter, for the more PHP inclined. (There are other filters in get_avatar() I believe as well.)

Itching to close as worksforme. This is definitely plugin or theme material and three distinct tools exist (override the function, calling it with an arg, or use the filter).

#6 @nacin
11 years ago

Ok, avatar_defaults is actually in options-discussion.php, not get_avatar(). It isn't difficult to hook into a blog option (either on storage or retrieval), though I'm not sure you can expect a theme developer to do that.

#7 @nacin
11 years ago

  • Milestone Unassigned deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Closing as worksforme. Re-open if there is a specific idea to improve the current myriad of options, filters, etc.

Note: See TracTickets for help on using tickets.