diff --git a/includes/network-toolbar.php b/includes/network-toolbar.php index 7eb5574..5452b0b 100644 --- a/includes/network-toolbar.php +++ b/includes/network-toolbar.php @@ -895,9 +895,9 @@ public function add_invites_menu( $wp_admin_bar ) { * INVITATIONS */ - $title = 'Invitations'; + $title = __( 'Invitations', 'commons-in-a-box' ); if ( ! empty( $invites['groups'] ) ) { - $title .= '' . __( 'See All Invites', 'commons-in-a-box' ) . ''; + $title .= '' . esc_html__( 'See All Invites', 'commons-in-a-box' ) . ''; } // "Invitations" title $wp_admin_bar->add_node( @@ -934,7 +934,7 @@ public function add_invites_menu( $wp_admin_bar ) { $title .= '
' . esc_html( stripslashes( $group->name ) ) . '
'; // accept/reject buttons - $title .= '' . __( 'Accept', 'commons-in-a-box' ) . ' ' . __( 'Reject', 'commons-in-a-box' ) . '
' . __( 'Accept', 'commons-in-a-box' ) . ' ' . esc_html__( 'Reject', 'commons-in-a-box' ) . '
'; $wp_admin_bar->add_node( array( @@ -956,7 +956,7 @@ public function add_invites_menu( $wp_admin_bar ) { array( 'parent' => 'invites', 'id' => 'group-invites-none', - 'title' => 'No new invitations.
' . esc_html__( 'No new invitations.', 'commons-in-a-box' ) . '
' . bp_create_excerpt( bp_get_message_thread_subject(), 30 ) . ''; + $title .= '
' . esc_html( bp_create_excerpt( bp_get_message_thread_subject(), 30 ) ) . ''; // last sender - $title .= '' . bp_core_get_user_displayname( $messages_template->thread->last_sender_id ) . '
'; + $title .= '' . esc_html( bp_core_get_user_displayname( $messages_template->thread->last_sender_id ) ) . ''; // date and time $title .= '' . __( 'No new messages.', 'commons-in-a-box' ) . '
' . esc_html__( 'No new messages.', 'commons-in-a-box' ) . '