| @@ -208,9 +208,9 @@ | ||
| 208 | 208 | return array( |
| 209 | 209 | 'id' => (int) $row['id'], |
| 210 | 210 | 'game' => (string) $row['game'], |
| 211 | 211 | 'userId' => $user_id, |
| 212 | - 'userName' => $user ? $user->display_name : __( 'Former user', 'desktop-mode' ), | |
| 212 | + 'userName' => $user ? openstation_plain_text_title( $user->display_name ) : __( 'Former user', 'desktop-mode' ), | |
| 213 | 213 | 'userAvatar' => $user ? get_avatar_url( $user_id, array( 'size' => 48 ) ) : '', |
| 214 | 214 | 'score' => (int) $row['score'], |
| 215 | 215 | 'meta' => is_array( $meta ) ? $meta : array(), |
| 216 | 216 | 'createdAtMs' => (int) $row['created_at_ms'], |
| @@ -497,12 +497,12 @@ | ||
| 497 | 497 | return array( |
| 498 | 498 | 'id' => (int) $row['id'], |
| 499 | 499 | 'game' => (string) $row['game'], |
| 500 | 500 | 'challengerId' => (int) $row['challenger_id'], |
| 501 | - 'challengerName' => $challenger ? $challenger->display_name : __( 'Former user', 'desktop-mode' ), | |
| 501 | + 'challengerName' => $challenger ? openstation_plain_text_title( $challenger->display_name ) : __( 'Former user', 'desktop-mode' ), | |
| 502 | 502 | 'challengerAvatar' => $challenger ? get_avatar_url( $challenger->ID, array( 'size' => 48 ) ) : '', |
| 503 | 503 | 'recipientId' => (int) $row['recipient_id'], |
| 504 | - 'recipientName' => $recipient ? $recipient->display_name : __( 'Former user', 'desktop-mode' ), | |
| 504 | + 'recipientName' => $recipient ? openstation_plain_text_title( $recipient->display_name ) : __( 'Former user', 'desktop-mode' ), | |
| 505 | 505 | 'recipientAvatar' => $recipient ? get_avatar_url( $recipient->ID, array( 'size' => 48 ) ) : '', |
| 506 | 506 | 'scoreToBeat' => (int) $row['score_to_beat'], |
| 507 | 507 | 'scoreMeta' => is_array( $score_meta ) ? $score_meta : array(), |
| 508 | 508 | 'state' => (string) $row['state'], |