Changeset 4291
- Timestamp:
- 10/25/2016 09:11:46 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-user-badges/inc/class-plugin.php
r4269 r4291 183 183 */ 184 184 protected function get_badge_class( $classes, $item_type, $item_id ) { 185 $has_badge = false; 186 185 187 // Class related to moderators. 186 188 if ( $this->is_user_moderator() ) { 187 189 $classes[] = 'by-moderator'; 190 $has_badge = true; 188 191 } 189 192 … … 200 203 if ( $contrib_type ) { 201 204 $classes[] = 'by-' . $info['type'] . '-' . $contrib_type; 202 } 205 $has_badge = true; 206 } 207 } 208 209 if ( $has_badge ) { 210 $classes[] = 'author-has-badge'; 203 211 } 204 212
Note: See TracChangeset
for help on using the changeset viewer.