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/desktop-files/file-shares.php +2 -2 1.1.8 → 1.1.12 View file →
@@ -495,14 +495,14 @@
495 495 if ( $file ) {
496 496 $shape['fileName'] = (string) $file['display_name'];
497 497 $shape['ownerId'] = (int) $file['owner_id'];
498 498 $owner = get_userdata( (int) $file['owner_id'] );
499 - $shape['ownerName'] = $owner ? $owner->display_name : '';
499 + $shape['ownerName'] = $owner ? openstation_plain_text_title( $owner->display_name ) : '';
500 500 $shape['ownerAvatar'] = $owner ? get_avatar_url( $owner->ID, array( 'size' => 48 ) ) : '';
501 501 }
502 502 // Principal enrichment for the owner-side share list.
503 503 $principal = get_userdata( (int) $row['principal_ref'] );
504 - $shape['displayName'] = $principal ? $principal->display_name : '';
504 + $shape['displayName'] = $principal ? openstation_plain_text_title( $principal->display_name ) : '';
505 505 $shape['avatarUrl'] = $principal ? get_avatar_url( $principal->ID, array( 'size' => 48 ) ) : '';
506 506 return $shape;
507 507 }
508 508