Ticket #2707: 2707.patch
File 2707.patch, 1.5 KB (added by , 8 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-user-badges/inc/class-plugin.php
283 283 * @param string $item_type The type of thing getting badge assigned. One of 284 284 * 'topic' or 'reply'. 285 285 * @param int $item_id The ID of the item getting badge assigned. 286 * @return array|false Associative array with keys 'type', ' slug', and287 * ' 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. 288 288 */ 289 289 protected function get_author_badge( $item_type, $item_id ) { 290 290 if ( ! $info = $this->get_author_badge_info( $item_type, $item_id ) ) { … … 321 321 * 322 322 * @access protected 323 323 * 324 * @return array|false Associative array with keys 'type', ' slug', and325 * ' 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. 326 326 */ 327 327 protected function get_moderator_badge() { 328 328 $label = $help = null;