Making WordPress.org

Changes between Initial Version and Version 1 of Ticket #2707


Ignore:
Timestamp:
04/09/2017 09:29:36 AM (8 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2707 – Description

    initial v1  
    1 The `@return` entry for `get_author_badge()` and `get_moderator_badge()` says:
     1The `@return` entry for `get_author_badge()` says:
    22{{{
    3 Associative array with keys 'type', 'slug', and 'user_login'
     3Associative array with keys 'type', 'slug', and 'user_nicename' if author merits a badge, else null.
    44}}}
    5 However, the actual keys returned are `type`, `label`, and `help`.
     5Same for `get_moderator_badge()`:
     6{{{
     7Associative array with keys 'type', 'slug', and 'user_login' if author merits a badge, else false.
     8}}}
     9However, the actual keys returned in both cases are `type`, `label`, and `help`. Additionally, `get_author_badge()` return false on error, not null.
    610
    711Appears to be a copy/paste error in [4269].