Opened 7 years ago
Closed 7 years ago
#2707 closed defect (bug) (fixed)
Forums: Incorrect docs in User Badges plugin
Reported by: | SergeyBiryukov | Owned by: | coffee2code |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Support Forums | Keywords: | has-patch commit |
Cc: |
Description (last modified by )
The @return
entry for get_author_badge()
says:
Associative array with keys 'type', 'slug', and 'user_nicename' if author merits a badge, else null.
Same for get_moderator_badge()
:
Associative array with keys 'type', 'slug', and 'user_login' if author merits a badge, else false.
However, the actual keys returned in both cases are type
, label
, and help
. Additionally, get_author_badge()
return false on error, not null.
Appears to be a copy/paste error in [4269].
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 5303: