| @@ -102,9 +102,9 @@ | ||
| 102 | 102 | |
| 103 | 103 | // ----- Profile ----------------------------------------------------- |
| 104 | 104 | $profile = array( |
| 105 | 105 | 'id' => (int) $term->term_id, |
| 106 | - 'name' => $term->name, | |
| 106 | + 'name' => openstation_plain_text_title( $term->name ), | |
| 107 | 107 | 'slug' => $term->slug, |
| 108 | 108 | 'taxonomy' => $term->taxonomy, |
| 109 | 109 | 'taxonomyLabel' => isset( $tax_obj->labels->singular_name ) |
| 110 | 110 | ? (string) $tax_obj->labels->singular_name |
| @@ -118,9 +118,9 @@ | ||
| 118 | 118 | ); |
| 119 | 119 | if ( $term->parent > 0 ) { |
| 120 | 120 | $parent = get_term( $term->parent, $taxonomy ); |
| 121 | 121 | if ( $parent && ! is_wp_error( $parent ) ) { |
| 122 | - $profile['parentName'] = $parent->name; | |
| 122 | + $profile['parentName'] = openstation_plain_text_title( $parent->name ); | |
| 123 | 123 | } |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | $tt_id = (int) $term->term_taxonomy_id; |
| @@ -284,15 +284,15 @@ | ||
| 284 | 284 | $author = $author_id > 0 ? get_userdata( $author_id ) : null; |
| 285 | 285 | $author_arr = $author |
| 286 | 286 | ? array( |
| 287 | 287 | 'id' => (int) $author->ID, |
| 288 | - 'name' => $author->display_name, | |
| 288 | + 'name' => openstation_plain_text_title( $author->display_name ), | |
| 289 | 289 | 'avatarUrl' => get_avatar_url( $author->ID, array( 'size' => 48 ) ), |
| 290 | 290 | ) |
| 291 | 291 | : null; |
| 292 | 292 | $recent[] = array( |
| 293 | 293 | 'id' => $post_id, |
| 294 | - 'title' => get_the_title( $post_id ), | |
| 294 | + 'title' => openstation_plain_text_title( get_the_title( $post_id ) ), | |
| 295 | 295 | 'date' => mysql2date( 'c', (string) $row['post_date_gmt'], false ), |
| 296 | 296 | 'status' => (string) $row['post_status'], |
| 297 | 297 | 'type' => (string) $row['post_type'], |
| 298 | 298 | 'link' => (string) get_permalink( $post_id ), |
| @@ -327,9 +327,9 @@ | ||
| 327 | 327 | continue; |
| 328 | 328 | } |
| 329 | 329 | $top_authors[] = array( |
| 330 | 330 | 'userId' => (int) $u->ID, |
| 331 | - 'userName' => (string) $u->display_name, | |
| 331 | + 'userName' => openstation_plain_text_title( $u->display_name ), | |
| 332 | 332 | 'userAvatarUrl' => (string) get_avatar_url( $u->ID, array( 'size' => 48 ) ), |
| 333 | 333 | 'count' => (int) $row['n'], |
| 334 | 334 | ); |
| 335 | 335 | } |
| @@ -359,9 +359,9 @@ | ||
| 359 | 359 | $co_terms = array(); |
| 360 | 360 | foreach ( (array) $co_term_rows as $row ) { |
| 361 | 361 | $co_terms[] = array( |
| 362 | 362 | 'id' => (int) $row['term_id'], |
| 363 | - 'name' => (string) $row['name'], | |
| 363 | + 'name' => openstation_plain_text_title( $row['name'] ), | |
| 364 | 364 | 'slug' => (string) $row['slug'], |
| 365 | 365 | 'count' => (int) $row['n'], |
| 366 | 366 | ); |
| 367 | 367 | } |