WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#36031 closed defect (bug) (fixed)

Documentation for the pre_get_avatar hook

Reported by: henry.wright Owned by: 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 4 years ago.

Download all attachments as: .zip

Change History (5)

@henry.wright
4 years ago

#1 @henry.wright
4 years ago

  • Keywords has-patch added

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

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