XProfile: Add aliases for Performance team badge classes since the slugs aren't directly based on the name.
Some checks failed
Build files and push to `build` branch. / build (push) Has been cancelled
CI / PHP CodeSniffer (push) Has been cancelled
CI / PHP Unit Tests (7.4) (push) Has been cancelled

Props @dhrumilkumbhani
Fixes #336
This commit is contained in:
Scott Reilly 2025-02-03 13:12:48 -07:00
parent cd2c429017
commit 15a05df622
No known key found for this signature in database

View file

@ -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' );