Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send the full comment object to get_avatar() rather than just the comment author's email address #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Feb 19, 2013

  1. Send the full comment object to get_avatar() rather than just the e…

    …mail address.
    
    `get_avatar()` can accept a user ID, email address, or comment object.  It's best to use a comment object because it provides the most context to plugins which use the `get_avatar` filter to change the response of the `get_avatar()` function.
    
    Core WordPress always sends the full comment object to `get_avatar()` when rendering comment avatars.
    Michael D Adams committed Feb 19, 2013
    Configuration menu
    Copy the full SHA
    43debd6 View commit details
    Browse the repository at this point in the history
  2. typo

    Michael D Adams committed Feb 19, 2013
    Configuration menu
    Copy the full SHA
    2dd74c5 View commit details
    Browse the repository at this point in the history