Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 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:

Description

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 7 years ago.

Download all attachments as: .zip

Change History (5)

@henry.wright
7 years ago

#1 @henry.wright
7 years ago

  • Keywords has-patch added

#2 @henry.wright
7 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
7 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
7 years ago

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