Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#36031 closed defect (bug) (fixed)

Documentation for the pre_get_avatar hook

Reported by: henrywright's profile henry.wright Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 4.5 Priority: normal
Severity: normal Version: 4.4.2
Component: General Keywords: has-patch
Focuses: Cc:


Passing a non-null value will effectively short-circuit get_avatar(), passing the value through the {@see 'pre_get_avatar'} filter and returning early.

I believe the value is actually passed through the get_avatar hook, not pre_get_avatar.

Attachments (1)

36031.diff (596 bytes) - added by henry.wright 8 years ago.

Download all attachments as: .zip

Change History (5)

8 years ago

#1 @henry.wright
8 years ago

  • Keywords has-patch added

#2 @henry.wright
8 years ago

Alternatively of course, the documentation could be correct but the name of the actual filter hook could be wrong. Either way, there's an issue :)

#3 @SergeyBiryukov
8 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 36800:

Docs: Correct filter reference in pre_get_avatar filter description.

Props henry.wright.
Fixes #36031.

#4 @SergeyBiryukov
8 years ago

  • Milestone changed from Awaiting Review to 4.5
Note: See TracTickets for help on using tickets.