mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 02:01:18 +03:00
Theme: Add support for Openverse team, fix Themes Team badge
This syncs `r17406-dotorg` to the canonical Git repo.
This commit is contained in:
parent
a545168ef2
commit
174a0381d6
3 changed files with 24 additions and 0 deletions
|
@ -120,6 +120,17 @@ function get_aggregate_contributor_data_for_pledge( $pledge_id ) {
|
|||
return $carry;
|
||||
}, $initial );
|
||||
|
||||
$aggregate_data['teams'] = array_map(
|
||||
function( $team ) {
|
||||
// Fix for renamed team.
|
||||
if ( 'Theme Review Team' === $team ) {
|
||||
$team = 'Themes Team';
|
||||
}
|
||||
|
||||
return $team;
|
||||
},
|
||||
$aggregate_data['teams']
|
||||
);
|
||||
$aggregate_data['teams'] = array_unique( $aggregate_data['teams'] );
|
||||
sort( $aggregate_data['teams'] );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue