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/agents/conversations.php +2 -2 1.0.0 → 1.1.12 View file →
@@ -290,11 +290,11 @@
290 290
291 291 $out = array(
292 292 'id' => (int) $post->ID,
293 293 'agentId' => $agent_id,
294 - 'agentName' => $agent ? $agent->display_name : __( 'Deleted agent', 'desktop-mode' ),
294 + 'agentName' => $agent ? openstation_plain_text_title( $agent->display_name ) : __( 'Deleted agent', 'desktop-mode' ),
295 295 'agentDescription' => $agent ? (string) get_user_meta( $agent_id, '_desktop_mode_agent_description', true ) : '',
296 - 'agentAvatarUrl' => function_exists( 'openstation_agent_avatar_url' ) ? openstation_agent_avatar_url() : '',
296 + 'agentAvatarUrl' => function_exists( 'openstation_agent_avatar_url' ) ? openstation_agent_avatar_url( $agent_id ) : '',
297 297 'title' => (string) $post->post_title,
298 298 // Second sidebar line + who spoke last, so the list can say
299 299 // where each conversation got to instead of repeating its opener.
300 300 'preview' => openstation_agent_conversation_preview( $messages ),