From 15a05df622d2a2ad32f49fcb68261ef733f89864 Mon Sep 17 00:00:00 2001 From: Scott Reilly Date: Mon, 3 Feb 2025 13:12:48 -0700 Subject: [PATCH] XProfile: Add aliases for Performance team badge classes since the slugs aren't directly based on the name. Props @dhrumilkumbhani Fixes #336 --- plugins/wporg-5ftf/includes/xprofile.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/wporg-5ftf/includes/xprofile.php b/plugins/wporg-5ftf/includes/xprofile.php index 9b5c2d7..61dff1f 100644 --- a/plugins/wporg-5ftf/includes/xprofile.php +++ b/plugins/wporg-5ftf/includes/xprofile.php @@ -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' );