Skip to content

Commit

Permalink
Merge pull request #162 from WordPress/teams-uc-words
Browse files Browse the repository at this point in the history
Apply `ucwords()` to consistently capitalise team names
  • Loading branch information
dd32 authored Dec 10, 2024
2 parents 3568db9 + 91b4baf commit 8d2a93c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/wporg-meeting-posttype.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function meeting_custom_columns( $column, $post_id ) {
switch ( $column ) {
case 'team':
$team = get_post_meta( $post_id, 'team', true );
echo esc_html( $team );
echo esc_html( ucwords( $team ) );
break;
}
switch ( $column ) {
Expand Down Expand Up @@ -375,7 +375,7 @@ public function get_occurrences_for_period( $request ) {
'date' => $occurrence,
'time' => $meeting->time,
'datetime' => "{$occurrence}T{$meeting->time}+00:00",
'team' => $meeting->team,
'team' => ucwords( $meeting->team ),
'link' => $meeting->link,
'title' => wp_specialchars_decode( $meeting->post_title, ENT_QUOTES ),
'location' => $meeting->location,
Expand Down

0 comments on commit 8d2a93c

Please sign in to comment.