PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.12
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.12
1.1.12 1.1.11 1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 All 36 releases
← All changes | includes/my-wordpress/term-stats.php +6 -6 1.1.10 → 1.1.12 View file →
@@ -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 }