Making WordPress.org

Ticket #2707: 2707.patch

File 2707.patch, 1.5 KB (added by SergeyBiryukov, 8 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-user-badges/inc/class-plugin.php

     
    283283         * @param string $item_type The type of thing getting badge assigned. One of
    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 ) {
    290290                if ( ! $info = $this->get_author_badge_info( $item_type, $item_id ) ) {
     
    321321         *
    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() {
    328328                $label = $help = null;