Skip to content

Commit

Permalink
XProfile: Add aliases for Performance team badge classes since the sl…
Browse files Browse the repository at this point in the history
…ugs aren't directly based on the name.

Props @dhrumilkumbhani
Fixes #336
  • Loading branch information
coffee2code committed Feb 3, 2025
1 parent cd2c429 commit 15a05df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/wporg-5ftf/includes/xprofile.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,11 +509,13 @@ function get_association_classes( $team ) {
$classes = array( 'badge-photo-contributor', 'dashicons-camera' );
break;

case 'core-performance-team':
case 'performance-team':
// Logo defined as SVG in CSS.
$classes = array( 'badge-performance-team' );
break;

case 'core-performance-contributor':
case 'performance-contributor':
// Logo defined as SVG in CSS.
$classes = array( 'badge-performance-contributor' );
Expand Down

0 comments on commit 15a05df

Please sign in to comment.