mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 10:05:43 +03:00
Contributors: Standardize on team_names
field for consistency.
This commit is contained in:
parent
ccad917c00
commit
cd36902bb5
2 changed files with 3 additions and 3 deletions
|
@ -222,7 +222,7 @@ function send_contributor_inactive_email( array $contributor ) : bool {
|
|||
$team = str_replace( 'Team', '', $team );
|
||||
|
||||
return trim( $team );
|
||||
}, $contributor['teams_names'] );
|
||||
}, $contributor['team_names'] );
|
||||
|
||||
$message = sprintf( "
|
||||
Hi %s, a while ago you pledged to contribute %d %s a week to the %s %s:
|
||||
|
@ -250,7 +250,7 @@ function send_contributor_inactive_email( array $contributor ) : bool {
|
|||
$contributor['hours_per_week'],
|
||||
1 === $contributor['hours_per_week'] ? 'hour' : 'hours',
|
||||
natural_language_join( $short_team_names ),
|
||||
1 === count( $contributor['teams_names'] ) ? 'team' : 'teams',
|
||||
1 === count( $contributor['team_names'] ) ? 'team' : 'teams',
|
||||
$contributor['user_nicename']
|
||||
);
|
||||
$message = str_replace( "\t", '', trim( $message ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue