| @@ -247,9 +247,9 @@ | ||
| 247 | 247 | |
| 248 | 248 | // ---- Profile (minimal — the dossier already returned the full one) ---- |
| 249 | 249 | $profile = array( |
| 250 | 250 | 'id' => (int) $user->ID, |
| 251 | - 'name' => (string) $user->display_name, | |
| 251 | + 'name' => openstation_plain_text_title( $user->display_name ), | |
| 252 | 252 | 'avatarUrl' => get_avatar_url( $user->ID, array( 'size' => 128 ) ), |
| 253 | 253 | 'link' => get_author_posts_url( $user->ID ), |
| 254 | 254 | ); |
| 255 | 255 | if ( $can_see_private ) { |
| @@ -589,9 +589,9 @@ | ||
| 589 | 589 | } |
| 590 | 590 | $timeline[] = array( |
| 591 | 591 | 'kind' => 'post', |
| 592 | 592 | 'date' => mysql2date( 'c', $p['post_date_gmt'], false ), |
| 593 | - 'title' => (string) $p['post_title'], | |
| 593 | + 'title' => openstation_plain_text_title( $p['post_title'] ), | |
| 594 | 594 | 'status' => (string) $p['post_status'], |
| 595 | 595 | 'postId' => $pid, |
| 596 | 596 | 'link' => (string) get_permalink( $pid ), |
| 597 | 597 | 'type' => (string) $p['post_type'], |
| @@ -604,9 +604,9 @@ | ||
| 604 | 604 | } |
| 605 | 605 | $timeline[] = array( |
| 606 | 606 | 'kind' => 'comment', |
| 607 | 607 | 'date' => mysql2date( 'c', $c['comment_date_gmt'], false ), |
| 608 | - 'title' => (string) ( $c['post_title'] ?? '' ), | |
| 608 | + 'title' => openstation_plain_text_title( $c['post_title'] ?? '' ), | |
| 609 | 609 | 'status' => 'approved', |
| 610 | 610 | 'postId' => $pid, |
| 611 | 611 | 'link' => $pid ? (string) get_permalink( $pid ) : '', |
| 612 | 612 | ); |
| @@ -618,9 +618,9 @@ | ||
| 618 | 618 | } |
| 619 | 619 | $timeline[] = array( |
| 620 | 620 | 'kind' => 'post-update', |
| 621 | 621 | 'date' => mysql2date( 'c', $u['last_save'], false ), |
| 622 | - 'title' => (string) $u['post_title'], | |
| 622 | + 'title' => openstation_plain_text_title( $u['post_title'] ), | |
| 623 | 623 | 'status' => (string) $u['post_status'], |
| 624 | 624 | 'postId' => $pid, |
| 625 | 625 | 'link' => $pid ? (string) get_permalink( $pid ) : '', |
| 626 | 626 | 'type' => (string) $u['post_type'], |