WordPress.org

Making WordPress.org

Changeset 5303


Ignore:
Timestamp:
04/09/2017 10:57:04 PM (3 years ago)
Author:
coffee2code
Message:

Support Forums, User Badges: Fix @return docs for get_author_badge() and get_moderator_badge().

Props SergeyBiryukov.
Fixes #2707.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-user-badges/inc/class-plugin.php

    r5288 r5303  
    284284     *                          'topic' or 'reply'.
    285285     * @param int    $item_id   The ID of the item getting badge assigned.
    286      * @return array|false      Associative array with keys 'type', 'slug', and
    287      *                          'user_nicename' if author merits a badge, else null.
     286     * @return array|false      Associative array with keys 'type', 'label', and
     287     *                          'help' if author merits a badge, else false.
    288288     */
    289289    protected function get_author_badge( $item_type, $item_id ) {
     
    322322     * @access protected
    323323     *
    324      * @return array|false Associative array with keys 'type', 'slug', and
    325      *                     'user_login' if author merits a badge, else false.
     324     * @return array|false Associative array with keys 'type', 'label', and
     325     *                     'help' if author merits a badge, else false.
    326326     */
    327327    protected function get_moderator_badge() {
Note: See TracChangeset for help on using the changeset viewer.