| @@ -130,9 +130,9 @@ | ||
| 130 | 130 | |
| 131 | 131 | // ----- Profile ----------------------------------------------------- |
| 132 | 132 | $profile = array( |
| 133 | 133 | 'id' => (int) $user->ID, |
| 134 | - 'name' => $user->display_name, | |
| 134 | + 'name' => openstation_plain_text_title( $user->display_name ), | |
| 135 | 135 | 'description' => (string) $user->description, |
| 136 | 136 | 'link' => get_author_posts_url( $user->ID ), |
| 137 | 137 | 'website' => esc_url_raw( $user->user_url ), |
| 138 | 138 | 'avatarUrl' => get_avatar_url( $user->ID, array( 'size' => 192 ) ), |
| @@ -383,9 +383,9 @@ | ||
| 383 | 383 | continue; |
| 384 | 384 | } |
| 385 | 385 | $recent[] = array( |
| 386 | 386 | 'id' => (int) $p->ID, |
| 387 | - 'title' => get_the_title( $p ), | |
| 387 | + 'title' => openstation_plain_text_title( get_the_title( $p ) ), | |
| 388 | 388 | 'date' => mysql2date( 'c', $p->post_date_gmt, false ), |
| 389 | 389 | 'status' => (string) $p->post_status, |
| 390 | 390 | 'type' => (string) $p->post_type, |
| 391 | 391 | 'link' => get_permalink( $p ), |
| @@ -414,9 +414,9 @@ | ||
| 414 | 414 | $top_terms = array(); |
| 415 | 415 | foreach ( (array) $top_term_rows as $row ) { |
| 416 | 416 | $top_terms[] = array( |
| 417 | 417 | 'id' => (int) $row['term_id'], |
| 418 | - 'name' => (string) $row['name'], | |
| 418 | + 'name' => openstation_plain_text_title( $row['name'] ), | |
| 419 | 419 | 'slug' => (string) $row['slug'], |
| 420 | 420 | 'taxonomy' => (string) $row['taxonomy'], |
| 421 | 421 | 'count' => (int) $row['n'], |
| 422 | 422 | ); |