@@ -289,12 +281,12 @@ private function render_media_field(string $key, string $button_label, string $d
$media_url = $media_id ? wp_get_attachment_image_url($media_id, 'medium') : '';
?>
-
+ class="nav-tab ">
+ class="nav-tab ">
+ class="nav-tab ">
@@ -614,7 +606,7 @@ class="nav-tab
+ class="nav-tab ">
diff --git a/includes/class-opentrust-chat.php b/includes/class-opentrust-chat.php
index d315874..b859d9e 100644
--- a/includes/class-opentrust-chat.php
+++ b/includes/class-opentrust-chat.php
@@ -493,16 +493,17 @@ private function run_chat(
// ──────────────────────────────────────────────
public static function send_sse(string $event, mixed $data): void {
- $json = wp_json_encode($data);
+ // JSON_HEX_* flags hex-escape <>&'" so the encoded text carries no
+ // HTML-active characters — esc_html below is then byte-identical and
+ // satisfies "escape everything echoed" even though SSE is text/event-stream.
+ $json = wp_json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT);
if ($json === false) {
$json = '{}';
}
// Event name is an internal token (start|progress|complete|error|…); strip to [A-Za-z0-9_-].
- $event = preg_replace('/[^A-Za-z0-9_-]/', '', $event);
- // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $event sanitized above; $json produced by wp_json_encode().
- echo 'event: ' . $event . "\n";
- // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $json produced by wp_json_encode().
- echo 'data: ' . $json . "\n\n";
+ $event = (string) preg_replace('/[^A-Za-z0-9_-]/', '', $event);
+ echo esc_html('event: ' . $event) . "\n";
+ echo esc_html('data: ' . $json) . "\n\n";
if (function_exists('flush')) {
flush();
}
diff --git a/includes/class-opentrust-cpt.php b/includes/class-opentrust-cpt.php
index a83617c..535799a 100644
--- a/includes/class-opentrust-cpt.php
+++ b/includes/class-opentrust-cpt.php
@@ -385,22 +385,22 @@ public function render_cert_meta_box(\WP_Post $post): void {
-
+
@@ -263,6 +263,16 @@
'alert' => '
',
'share' => '
',
];
+ // Allow-list for the static SVG markup in $ot_icons.
+ $ot_icon_allowed = [
+ 'svg' => ['width' => true, 'height' => true, 'viewBox' => true, 'fill' => true, 'stroke' => true, 'stroke-width' => true, 'stroke-linecap' => true, 'stroke-linejoin' => true, 'aria-hidden' => true],
+ 'path' => ['d' => true, 'fill-rule' => true, 'clip-rule' => true],
+ 'circle' => ['cx' => true, 'cy' => true, 'r' => true],
+ 'ellipse' => ['cx' => true, 'cy' => true, 'rx' => true, 'ry' => true],
+ 'line' => ['x1' => true, 'y1' => true, 'x2' => true, 'y2' => true],
+ 'polyline' => ['points' => true],
+ 'polygon' => ['points' => true],
+ ];
?>
@@ -271,8 +281,7 @@
diff --git a/templates/partials/certifications.php b/templates/partials/certifications.php
index 6d90e8c..9e7772e 100644
--- a/templates/partials/certifications.php
+++ b/templates/partials/certifications.php
@@ -18,7 +18,7 @@
@@ -101,7 +101,8 @@
/* translators: %s: certification expiry date */
$ot_date_parts[] = sprintf(esc_html__('Expires %s', 'opentrust'), esc_html($ot_expiry_date));
}
- echo implode(' · ', $ot_date_parts); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Each part escaped via esc_html() above
+ // Parts are esc_html'd above; empty allow-list is the visible late escape.
+ echo wp_kses(implode(' · ', $ot_date_parts), []);
?>
diff --git a/templates/partials/contact.php b/templates/partials/contact.php
index 06efb3e..bf4031b 100644
--- a/templates/partials/contact.php
+++ b/templates/partials/contact.php
@@ -114,14 +114,22 @@
-
+ ['class' => true],
+ 'a' => ['href' => true, 'target' => true, 'rel' => true],
+ ];
+ ?>
-
+
diff --git a/templates/partials/data-practices.php b/templates/partials/data-practices.php
index 963b464..1221b26 100644
--- a/templates/partials/data-practices.php
+++ b/templates/partials/data-practices.php
@@ -30,7 +30,7 @@
diff --git a/templates/partials/policies.php b/templates/partials/policies.php
index d4d1fcc..39ad934 100644
--- a/templates/partials/policies.php
+++ b/templates/partials/policies.php
@@ -23,7 +23,7 @@
diff --git a/templates/partials/policy-single.php b/templates/partials/policy-single.php
index 35171a6..8ac9f5e 100644
--- a/templates/partials/policy-single.php
+++ b/templates/partials/policy-single.php
@@ -153,16 +153,17 @@
@@ -180,10 +185,7 @@
-
+
diff --git a/templates/partials/subprocessors.php b/templates/partials/subprocessors.php
index ee80062..8bf25bb 100644
--- a/templates/partials/subprocessors.php
+++ b/templates/partials/subprocessors.php
@@ -16,7 +16,7 @@
diff --git a/templates/trust-center.php b/templates/trust-center.php
index b400d57..665dab9 100644
--- a/templates/trust-center.php
+++ b/templates/trust-center.php
@@ -16,9 +16,9 @@
$ot_hsl = $ot_data['hsl'];
$ot_view = $ot_data['view'] ?? 'main';
-$ot_page_title = esc_html($ot_settings['page_title'] ?: __('Trust Center', 'opentrust'));
+$ot_page_title = (string) ($ot_settings['page_title'] ?: __('Trust Center', 'opentrust'));
$ot_company_name = (string) ($ot_settings['company_name'] ?? '');
-$ot_tagline = esc_html($ot_settings['tagline'] ?: __('Transparency and security you can trust.', 'opentrust'));
+$ot_tagline = (string) ($ot_settings['tagline'] ?: __('Transparency and security you can trust.', 'opentrust'));
$ot_logo_url = $ot_data['logo_url'] ?? '';
$ot_base_url = $ot_data['base_url'] ?? '/';
@@ -73,8 +73,7 @@
if ($ot_view === 'policy_single' && !empty($ot_data['current_policy'])) {
echo esc_html($ot_data['current_policy']->post_title) . ' — ';
}
- // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Pre-escaped via esc_html() in render class
- echo $ot_page_title;
+ echo esc_html($ot_page_title);
if ($ot_company_name) {
echo ' | ' . esc_html($ot_company_name);
}
From b5505df10903fa645104130be4975c3310db7faf Mon Sep 17 00:00:00 2001
From: Nol de Roos <108540791+nolderoos@users.noreply.github.com>
Date: Tue, 12 May 2026 23:21:43 +0200
Subject: [PATCH 2/7] fix: lowercase viewbox in chat icon allow-list, refresh
POT
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
wp_kses lowercases attribute names for allow-list matching, so the
camelCase 'viewBox' key in $ot_icon_allowed never matched and the
attribute got stripped — chat suggestion-chip icons rendered cropped.
Lowercase 'viewbox' matches; HTML5 case-fixes 'viewbox' to 'viewBox'
on SVG-in-HTML during parse, so the rendered SVG scales correctly.
POT regenerated to capture the admin-ai.php msgid change (embedded
%s ) and pick up admin-questions.php line shifts.
nl_NL PO updated to match the new msgid; MO recompiled with --use-fuzzy
to preserve existing partial translations.
---
languages/opentrust-nl_NL.mo | Bin 9520 -> 9334 bytes
languages/opentrust-nl_NL.po | 2 +-
languages/opentrust.pot | 222 +++++++++++++++++------------------
templates/chat.php | 7 +-
4 files changed, 117 insertions(+), 114 deletions(-)
diff --git a/languages/opentrust-nl_NL.mo b/languages/opentrust-nl_NL.mo
index 32492295f6d5b61806038307362bf266fa905afa..de08d279a58e725b5c6823180f5adb391adf14c0 100644
GIT binary patch
delta 2566
zcmY+_e@s
O
za(VN;P2TURiRX-Vn8+r+Nie&B9Z4K$KP8*3!3iwGl!wh;#X9W5F=zH{Gks+kAHq|Z
zfoE_be(26$!6L?2vE0nF+jQo0A}7Txgq1iK*Ww~H&w4x!6&x!jq^6jA15D
zq9$+~6Y(yxCYwU$YSYf7IeLy~mg;xR@{rH04EeJ<4zsYujU%WD>_OcqikjFU*5WWe
zf@7!&{D9kV0(D)ORk30#!AEg7Ci8q7prZ#5IZvU!FyeduCzVP24#B2-37
zP!Fy`U009%SrZ3MupO1j4%EW-qOR+oNB(t#S2&@GyyiZ58}-EtNcQY~)B`S~Rz8M9
z_#zY#r*Q*LVKLUGnJvYAs7$|sn#en8Vxrnl4<9
zn&@iO`3B_Aws6p<>q32g6m|V^B!^A}O~y@WaV8|LDaM@PFeV?mJGY}Bq_hf4iU
zR3^Gn*Y!I4P^CDCU&on^Vm;$lUWH0Li*Mm~IEZbecNDLoQooB?ORt-bHq`;tCVCyU
zf{(ERzr>Yz6Sw(z7g8mYtMN3lzwCR|7k)ua><@STK2kkPUL2gyL9M(LNtUfbWvmrd!X8w~`cMmg
z6MOakze{H)CbBbByH2daQ4HgCR0eLLHqF0Sh>IDNVk0U8gU%s${ut^(pQ0x46)K}w
zP}h&6ryKuFM;G2ey{CVpGI7rt9}ZSF7qy~v)D22eD_)7ZaUJSDEyxRGZRlYymg7y-
zeHXFOc42WIAL~6m$q8+~YaEv2EmVy&$d@ccZNdsvhI()fo=27DS5&S4L{02IY9bF%
z6AtB@vEM9=nm{e8lpFJzo-SzTgjO4}(KG=#}C(!k!}b5^DO*S6%gcz~1yXnSM-~h?!PL=Xqj3
zp|@c^@eHB;rKWxL7|})?Cj8dvtibKW3q&!ojL>gFKaobL?FsNVS_%DTVivKL$R&0V
uYW&3eZ&5zB#O@?V;$vMYBcWLKg1ESZ^3t+cIDLO&?DMQ0$s-j75B>uKchUF&
delta 2680
zcmYk;3rv+|9LMoLw-m%Xh+@W35VQomg(L<=W=3XS(-b0tqa8vHae!uFug=zmIm@YY
z%PzBvTbNBf=~y-=wivdIR*sc(u9Z$}ts7fz8nf^3oQLY!`Jd18KD_VqK9~P<^sj}7
z%DfAs;&&URg}9mcBF^j$Y#qcG<@ZFhx%dZ8$7xCY4J)t;&pGD}G1DV&;!U_8$KpXu
z!!Fl;0kgTjgfq-MOHMYML_;yAU=qlDGuDoJ(J^F9b^>Q(H|jX
zMhB9Q@mv=mbF(63%vKW7Gb^K_7p-*GAbnT}`PgQ@5^%e_-h~>#+o+D(Q3E@QMc9eM
zu^+V(L+N}mrl9VtMrLk79Kri-9~I5y2pTA5!_TXhw+Vkx{$Gn|SO
zF%Q+>5?qgKa2cM$LQEZDHU}4@mr3OXD%z`d)b*#Bg_m(ECXbB1xBxYy64aJ0K&?yw
zwIV^(i=Rf_w*~pwOMGd7uc7XL3pKI#Mza69@h}bQpaV6Klc@IZP!E2OtfpN;y`T>@
z^M2fjqeew@U>mCAPTYWJuoR0%o8{nhI0g5kR=Q_2>#qmS(~yl<+zrF&eHzz=s6FUFgkX*jnmtXAdg5
zdQr*Lhnh)hy4g&eh_~Yk)J)n?$Ls&R8Y)o_?nRCC11!gnP#uh%V0H&iK=RI3q3#c$2KJ0=Z$q}%UU%(>QT=ryi)p7(
zEA}JC>-=A*qPM&qKGclfM?K$(YVSt%`xUC6
z3&;VpE9l|hKA1tJl}uB|A7TZ5jHNi1WuaI|{EV7OY*zI5AqlkwGf+#t&bbZaxITiU
ziycFD%f3N9|0l-dHPn4KoN*q#Orc>A#-PfB#GM51wpc=?l2G!M5UYtoLZ@W|v4UtK
z?j!Ce77`B-V~EFz5TT-ps?-xt5}JVbC|@cCgjPVK9w=J6^@R3pm1}H7otA-8MP;zN
z2%t{Jba!2gHLiY_vl+F8Dr~i9!D!w5_yqBgyM79__bMFi$hMT?y@a-4pyW`|o<2g%
zagEuiqj|TxR!%Gk-#stFbSU};}<
zYRJJzvdzN<#6T&gqT^gg=v43vZ7a#Y$iH|H$>iJcVM6~M`+re(FDKR!%9mS-a-xAq
zAygiVd`A;ar=^TYAQlroVhy39AE7*g9JH84;WLR#V|V^CBqN-jyl3#FK*+Z-*xcv~
z)K>>;{Pj(~Mt`UwSReBH8XAMu{!pkSd>~~|Ox*Omg7DGQ+W4J6jmrv;Pp?RvT-D^`
Y;o9c9x`6-R$8!fBk3L=UPD^IYKcL+MfB*mh
diff --git a/languages/opentrust-nl_NL.po b/languages/opentrust-nl_NL.po
index c84f018..bc09e36 100644
--- a/languages/opentrust-nl_NL.po
+++ b/languages/opentrust-nl_NL.po
@@ -530,7 +530,7 @@ msgstr ""
#. translators: %s: provider label, e.g. OpenAI
#: includes/class-opentrust-admin.php:1036
#, php-format
-msgid "You are currently using %s. Only Anthropic uses a structural Citations API — every other provider relies on prompted citation tags the model can ignore or fabricate. For a published trust center, switch to Anthropic below."
+msgid "You are currently using %s . Only Anthropic uses a structural Citations API — every other provider relies on prompted citation tags the model can ignore or fabricate. For a published trust center, switch to Anthropic below."
msgstr ""
#: includes/class-opentrust-admin.php:1047
diff --git a/languages/opentrust.pot b/languages/opentrust.pot
index 716de4f..ce49e15 100644
--- a/languages/opentrust.pot
+++ b/languages/opentrust.pot
@@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2026-05-11T15:00:11+00:00\n"
+"POT-Creation-Date: 2026-05-12T21:20:09+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.12.0\n"
"X-Domain: opentrust\n"
@@ -48,7 +48,7 @@ msgstr ""
#. translators: %s: provider label, e.g. OpenAI
#: includes/class-opentrust-admin-ai.php:83
#, php-format
-msgid "You are currently using %s. Only Anthropic uses a structural Citations API — every other provider relies on prompted citation tags the model can ignore or fabricate. For a published trust center, switch to Anthropic below."
+msgid "You are currently using %s . Only Anthropic uses a structural Citations API — every other provider relies on prompted citation tags the model can ignore or fabricate. For a published trust center, switch to Anthropic below."
msgstr ""
#: includes/class-opentrust-admin-ai.php:94
@@ -319,9 +319,9 @@ msgstr ""
#: includes/class-opentrust-admin-ai.php:714
#: includes/class-opentrust-admin-ai.php:751
#: includes/class-opentrust-admin-ai.php:796
-#: includes/class-opentrust-admin-questions.php:219
-#: includes/class-opentrust-admin-questions.php:260
-#: includes/class-opentrust-admin-questions.php:277
+#: includes/class-opentrust-admin-questions.php:223
+#: includes/class-opentrust-admin-questions.php:264
+#: includes/class-opentrust-admin-questions.php:281
#: includes/class-opentrust-admin-tools.php:432
msgid "You do not have permission to perform this action."
msgstr ""
@@ -490,27 +490,27 @@ msgstr ""
msgid "REFUSED"
msgstr ""
-#: includes/class-opentrust-admin-questions.php:205
+#: includes/class-opentrust-admin-questions.php:209
msgid "Danger zone"
msgstr ""
-#: includes/class-opentrust-admin-questions.php:206
+#: includes/class-opentrust-admin-questions.php:210
msgid "Permanently delete all logged questions? This cannot be undone."
msgstr ""
-#: includes/class-opentrust-admin-questions.php:207
+#: includes/class-opentrust-admin-questions.php:211
msgid "Clear entire question log"
msgstr ""
-#: includes/class-opentrust-admin-questions.php:268
+#: includes/class-opentrust-admin-questions.php:272
msgid "Question log cleared."
msgstr ""
-#: includes/class-opentrust-admin-questions.php:287
+#: includes/class-opentrust-admin-questions.php:291
msgid "Logging enabled."
msgstr ""
-#: includes/class-opentrust-admin-questions.php:287
+#: includes/class-opentrust-admin-questions.php:291
msgid "Logging disabled."
msgstr ""
@@ -695,48 +695,48 @@ msgstr ""
msgid "VAT number, sales-tax ID, or equivalent international tax identifier."
msgstr ""
-#: includes/class-opentrust-admin-settings.php:230
+#: includes/class-opentrust-admin-settings.php:222
msgid "Low contrast on white backgrounds"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:231
+#: includes/class-opentrust-admin-settings.php:223
msgid "Using your exact color on white backgrounds"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:234
+#: includes/class-opentrust-admin-settings.php:226
msgid "Your chosen color is too light for buttons, links, and borders on white sections. On those surfaces OpenTrust will use a darker, on-brand variant:"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:237
+#: includes/class-opentrust-admin-settings.php:229
msgid "You've chosen to keep your exact color on white backgrounds. Buttons, links, and borders in those sections may be hard to read."
msgstr ""
-#: includes/class-opentrust-admin-settings.php:249
+#: includes/class-opentrust-admin-settings.php:241
msgid "The hero and navigation still use your exact color."
msgstr ""
-#: includes/class-opentrust-admin-settings.php:260
+#: includes/class-opentrust-admin-settings.php:252
msgid "Use my exact color anyway — skip the contrast adjustment."
msgstr ""
-#: includes/class-opentrust-admin-settings.php:273
+#: includes/class-opentrust-admin-settings.php:265
#: includes/class-opentrust-cpt.php:390
msgid "Select Logo"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:274
+#: includes/class-opentrust-admin-settings.php:266
msgid "Used in the hero and sticky nav. A white version is recommended — it sits on a dark background."
msgstr ""
-#: includes/class-opentrust-admin-settings.php:281
+#: includes/class-opentrust-admin-settings.php:273
msgid "Select Avatar"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:282
+#: includes/class-opentrust-admin-settings.php:274
msgid "Square image used as the avatar on AI chat responses. Use a colored background with a light or dark favicon or logo on top."
msgstr ""
-#: includes/class-opentrust-admin-settings.php:297
+#: includes/class-opentrust-admin-settings.php:289
#: includes/class-opentrust-cpt.php:391
#: includes/class-opentrust-cpt.php:403
#: includes/class-opentrust-cpt.php:534
@@ -746,85 +746,85 @@ msgstr ""
msgid "Remove"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:309
+#: includes/class-opentrust-admin-settings.php:301
msgid "Show a \"Powered by OpenTrust\" credit in the trust center footer."
msgstr ""
-#: includes/class-opentrust-admin-settings.php:313
+#: includes/class-opentrust-admin-settings.php:305
msgid "Off by default. Public credits are opt-in."
msgstr ""
-#: includes/class-opentrust-admin-settings.php:322
+#: includes/class-opentrust-admin-settings.php:314
#: templates/partials/certifications.php:22
msgid "Certifications & Compliance"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:323
+#: includes/class-opentrust-admin-settings.php:315
#: includes/class-opentrust-admin-tools.php:459
#: includes/class-opentrust-cpt.php:151
#: includes/class-opentrust-cpt.php:161
#: templates/chat.php:45
#: templates/partials/hero.php:55
-#: templates/trust-center.php:117
+#: templates/trust-center.php:116
msgid "Policies"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:324
+#: includes/class-opentrust-admin-settings.php:316
#: includes/class-opentrust-admin-tools.php:461
#: includes/class-opentrust-cpt.php:218
#: includes/class-opentrust-cpt.php:227
#: templates/chat.php:47
#: templates/partials/hero.php:61
#: templates/partials/subprocessors.php:20
-#: templates/trust-center.php:119
+#: templates/trust-center.php:118
msgid "Subprocessors"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:325
+#: includes/class-opentrust-admin-settings.php:317
#: includes/class-opentrust-admin-tools.php:462
#: includes/class-opentrust-cpt.php:251
#: includes/class-opentrust-cpt.php:260
#: templates/chat.php:48
#: templates/partials/data-practices.php:34
-#: templates/trust-center.php:120
+#: templates/trust-center.php:119
msgid "Data Practices"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:326
+#: includes/class-opentrust-admin-settings.php:318
#: includes/class-opentrust-admin-tools.php:463
#: includes/class-opentrust-cpt.php:284
#: includes/class-opentrust-cpt.php:294
msgid "FAQs"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:327
+#: includes/class-opentrust-admin-settings.php:319
msgid "Contact & DPO"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:594
+#: includes/class-opentrust-admin-settings.php:586
msgid "View Trust Center"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:601
-#: includes/class-opentrust-render.php:516
+#: includes/class-opentrust-admin-settings.php:593
+#: includes/class-opentrust-render.php:515
msgid "General"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:605
+#: includes/class-opentrust-admin-settings.php:597
#: templates/chat.php:60
-#: templates/trust-center.php:121
+#: templates/trust-center.php:120
msgid "Contact"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:609
+#: includes/class-opentrust-admin-settings.php:601
msgid "AI Chat"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:612
+#: includes/class-opentrust-admin-settings.php:604
msgid "Live"
msgstr ""
-#: includes/class-opentrust-admin-settings.php:618
+#: includes/class-opentrust-admin-settings.php:610
msgid "Import & Export"
msgstr ""
@@ -979,7 +979,7 @@ msgstr ""
#: includes/class-opentrust-cpt.php:194
#: templates/chat.php:46
#: templates/partials/hero.php:49
-#: templates/trust-center.php:118
+#: templates/trust-center.php:117
msgid "Certifications"
msgstr ""
@@ -1114,41 +1114,41 @@ msgid "Chat provider failed unexpectedly."
msgstr ""
#. translators: %s is the tool name (get_document or search_documents).
-#: includes/class-opentrust-chat.php:717
+#: includes/class-opentrust-chat.php:718
#, php-format
msgid "You already called %s with the same arguments earlier in this conversation. Pick a different document id from the index, or rephrase the search query with different keywords."
msgstr ""
-#: includes/class-opentrust-chat.php:727
+#: includes/class-opentrust-chat.php:728
msgid "Document id is required."
msgstr ""
#. translators: %s is the requested document id.
-#: includes/class-opentrust-chat.php:736
+#: includes/class-opentrust-chat.php:737
#, php-format
msgid "No document with id \"%s\". Pick one of the ids listed in the corpus index above."
msgstr ""
-#: includes/class-opentrust-chat.php:744
+#: includes/class-opentrust-chat.php:745
msgid "Search query is empty."
msgstr ""
-#: includes/class-opentrust-chat.php:747
+#: includes/class-opentrust-chat.php:748
msgid "Search index unavailable."
msgstr ""
#. translators: %s is the search query.
-#: includes/class-opentrust-chat.php:753
+#: includes/class-opentrust-chat.php:754
#, php-format
msgid "No documents matched \"%s\". Try broader keywords or pick a document id from the corpus index above."
msgstr ""
-#: includes/class-opentrust-chat.php:765
+#: includes/class-opentrust-chat.php:766
msgid "Search ranking returned no usable results."
msgstr ""
#. translators: %s is the unknown tool name.
-#: includes/class-opentrust-chat.php:770
+#: includes/class-opentrust-chat.php:771
#, php-format
msgid "Unknown tool: %s"
msgstr ""
@@ -1300,7 +1300,7 @@ msgstr ""
#: includes/class-opentrust-cpt.php:285
#: templates/chat.php:61
-#: templates/trust-center.php:122
+#: templates/trust-center.php:121
msgid "FAQ"
msgstr ""
@@ -1780,12 +1780,12 @@ msgstr ""
msgid "Back to Trust Center"
msgstr ""
-#: includes/class-opentrust-render.php:440
+#: includes/class-opentrust-render.php:442
msgid "Updated just now"
msgstr ""
#. translators: %d: number of minutes since last update
-#: includes/class-opentrust-render.php:445
+#: includes/class-opentrust-render.php:447
#, php-format
msgid "Updated %d minute ago"
msgid_plural "Updated %d minutes ago"
@@ -1793,7 +1793,7 @@ msgstr[0] ""
msgstr[1] ""
#. translators: %d: number of hours since last update
-#: includes/class-opentrust-render.php:452
+#: includes/class-opentrust-render.php:454
#, php-format
msgid "Updated %d hour ago"
msgid_plural "Updated %d hours ago"
@@ -1801,7 +1801,7 @@ msgstr[0] ""
msgstr[1] ""
#. translators: %d: number of days since last update
-#: includes/class-opentrust-render.php:459
+#: includes/class-opentrust-render.php:461
#, php-format
msgid "Updated %d day ago"
msgid_plural "Updated %d days ago"
@@ -1810,73 +1810,73 @@ msgstr[1] ""
#. translators: %s = formatted date
#. translators: %s: policy last updated date
-#: includes/class-opentrust-render.php:465
+#: includes/class-opentrust-render.php:467
#: templates/partials/policy-single.php:111
#, php-format
msgid "Updated %s"
msgstr ""
-#: includes/class-opentrust-render.php:512
+#: includes/class-opentrust-render.php:511
msgid "Security"
msgstr ""
-#: includes/class-opentrust-render.php:513
+#: includes/class-opentrust-render.php:512
msgid "Privacy"
msgstr ""
-#: includes/class-opentrust-render.php:514
+#: includes/class-opentrust-render.php:513
msgid "Compliance"
msgstr ""
-#: includes/class-opentrust-render.php:515
+#: includes/class-opentrust-render.php:514
msgid "Operational"
msgstr ""
-#: includes/class-opentrust-render.php:527
+#: includes/class-opentrust-render.php:526
msgid "Certified"
msgstr ""
-#: includes/class-opentrust-render.php:528
+#: includes/class-opentrust-render.php:527
msgid "In audit"
msgstr ""
-#: includes/class-opentrust-render.php:529
+#: includes/class-opentrust-render.php:528
msgid "Expired"
msgstr ""
-#: includes/class-opentrust-render.php:538
+#: includes/class-opentrust-render.php:537
msgid "Compliant"
msgstr ""
-#: includes/class-opentrust-render.php:539
+#: includes/class-opentrust-render.php:538
msgid "Working toward"
msgstr ""
-#: includes/class-opentrust-render.php:540
+#: includes/class-opentrust-render.php:539
msgid "Lapsed"
msgstr ""
-#: includes/class-opentrust-render.php:546
+#: includes/class-opentrust-render.php:545
msgid "Consent"
msgstr ""
-#: includes/class-opentrust-render.php:547
+#: includes/class-opentrust-render.php:546
msgid "Contractual Necessity"
msgstr ""
-#: includes/class-opentrust-render.php:548
+#: includes/class-opentrust-render.php:547
msgid "Legitimate Interest"
msgstr ""
-#: includes/class-opentrust-render.php:549
+#: includes/class-opentrust-render.php:548
msgid "Legal Obligation"
msgstr ""
-#: includes/class-opentrust-render.php:550
+#: includes/class-opentrust-render.php:549
msgid "Vital Interest"
msgstr ""
-#: includes/class-opentrust-render.php:551
+#: includes/class-opentrust-render.php:550
msgid "Public Interest"
msgstr ""
@@ -1898,7 +1898,7 @@ msgid "Actions"
msgstr ""
#: includes/class-opentrust-version.php:169
-#: templates/partials/policy-single.php:173
+#: templates/partials/policy-single.php:174
msgid "Current"
msgstr ""
@@ -2162,18 +2162,18 @@ msgid "Ask %s — Trust Center"
msgstr ""
#: templates/chat.php:112
-#: templates/trust-center.php:111
+#: templates/trust-center.php:110
msgid "Skip to content"
msgstr ""
#: templates/chat.php:114
#: templates/partials/policy-single.php:36
-#: templates/trust-center.php:124
+#: templates/trust-center.php:123
msgid "Trust center navigation"
msgstr ""
#: templates/chat.php:143
-#: templates/trust-center.php:154
+#: templates/trust-center.php:153
msgid "Ask AI"
msgstr ""
@@ -2190,23 +2190,23 @@ msgid "Browse trust center"
msgstr ""
#: templates/chat.php:188
-#: templates/chat.php:355
+#: templates/chat.php:367
msgid "You"
msgstr ""
#: templates/chat.php:190
#: templates/chat.php:207
-#: templates/chat.php:356
+#: templates/chat.php:368
msgid "just now"
msgstr ""
#: templates/chat.php:214
-#: templates/chat.php:348
+#: templates/chat.php:360
msgid "Sources"
msgstr ""
#: templates/chat.php:224
-#: templates/chat.php:358
+#: templates/chat.php:370
msgid "AI-generated answer. Not legal, security, or compliance advice. Verify against the sources above."
msgstr ""
@@ -2238,97 +2238,97 @@ msgstr ""
msgid "Which subprocessors do you use?"
msgstr ""
-#: templates/chat.php:270
+#: templates/chat.php:283
msgid "Suggested questions"
msgstr ""
-#: templates/chat.php:286
+#: templates/chat.php:298
msgid "Ask a question"
msgstr ""
-#: templates/chat.php:293
-#: templates/chat.php:337
+#: templates/chat.php:305
+#: templates/chat.php:349
msgid "Ask anything about our security and compliance…"
msgstr ""
-#: templates/chat.php:295
-#: templates/chat.php:346
+#: templates/chat.php:307
+#: templates/chat.php:358
msgid "Start a new conversation"
msgstr ""
-#: templates/chat.php:298
-#: templates/chat.php:338
+#: templates/chat.php:310
+#: templates/chat.php:350
msgid "Send"
msgstr ""
#. translators: 1: link to trust center, 2: company name
-#: templates/chat.php:309
+#: templates/chat.php:321
#, php-format
msgid "Grounded in the published %1$s for %2$s. AI-generated, not legal, security, or compliance advice. Always check the sources."
msgstr ""
-#: templates/chat.php:310
+#: templates/chat.php:322
msgid "trust center"
msgstr ""
-#: templates/chat.php:339
+#: templates/chat.php:351
msgid "Stop"
msgstr ""
-#: templates/chat.php:340
+#: templates/chat.php:352
msgid "Thinking…"
msgstr ""
-#: templates/chat.php:341
+#: templates/chat.php:353
msgid "Connection lost. Retry?"
msgstr ""
-#: templates/chat.php:342
+#: templates/chat.php:354
msgid "Contact security team →"
msgstr ""
-#: templates/chat.php:343
+#: templates/chat.php:355
msgid "Copy"
msgstr ""
-#: templates/chat.php:344
+#: templates/chat.php:356
msgid "Copied"
msgstr ""
-#: templates/chat.php:345
+#: templates/chat.php:357
#: templates/partials/policy-single.php:139
msgid "Print"
msgstr ""
-#: templates/chat.php:347
+#: templates/chat.php:359
msgid "This conversation is getting long. Start fresh for better answers."
msgstr ""
-#: templates/chat.php:349
+#: templates/chat.php:361
msgid "I don't see enough information in our trust center to answer that confidently."
msgstr ""
-#: templates/chat.php:350
+#: templates/chat.php:362
msgid "The AI provider returned an error. Please try again."
msgstr ""
-#: templates/chat.php:351
+#: templates/chat.php:363
msgid "AI is temporarily unavailable. Please try again in a few minutes or browse our published content."
msgstr ""
-#: templates/chat.php:352
+#: templates/chat.php:364
msgid "Message is too long."
msgstr ""
-#: templates/chat.php:353
+#: templates/chat.php:365
msgid "Please wait a moment before asking again."
msgstr ""
-#: templates/chat.php:354
+#: templates/chat.php:366
msgid "Cite source"
msgstr ""
-#: templates/chat.php:357
+#: templates/chat.php:369
msgid "No content returned by the model."
msgstr ""
@@ -2352,11 +2352,11 @@ msgstr ""
msgid "Expires %s"
msgstr ""
-#: templates/partials/certifications.php:113
+#: templates/partials/certifications.php:114
msgid "Download report"
msgstr ""
-#: templates/partials/certifications.php:114
+#: templates/partials/certifications.php:115
msgid "View documentation"
msgstr ""
@@ -2537,7 +2537,7 @@ msgid "Version history (%d)"
msgstr ""
#. translators: %d: version number
-#: templates/partials/policy-single.php:165
+#: templates/partials/policy-single.php:166
#, php-format
msgid "v%d"
msgstr ""
@@ -2563,16 +2563,16 @@ msgstr ""
msgid "Transparency and security you can trust."
msgstr ""
-#: templates/trust-center.php:206
+#: templates/trust-center.php:205
msgid "Trust center content is being prepared. Check back soon."
msgstr ""
#. translators: %s: company name
-#: templates/trust-center.php:222
+#: templates/trust-center.php:221
#, php-format
msgid "© %1$s %2$s. All rights reserved."
msgstr ""
-#: templates/trust-center.php:230
+#: templates/trust-center.php:229
msgid "Powered by OpenTrust"
msgstr ""
diff --git a/templates/chat.php b/templates/chat.php
index 6d0d0d2..b92157f 100644
--- a/templates/chat.php
+++ b/templates/chat.php
@@ -263,9 +263,12 @@
'alert' => ' ',
'share' => ' ',
];
- // Allow-list for the static SVG markup in $ot_icons.
+ // Allow-list for the static SVG markup in $ot_icons. wp_kses lowercases
+ // attribute names for both matching AND output, so allow-list keys must
+ // be lowercase. The HTML5 parser case-fixes 'viewbox' → 'viewBox' on
+ // foreign-content (SVG) elements, so scaling still works in the DOM.
$ot_icon_allowed = [
- 'svg' => ['width' => true, 'height' => true, 'viewBox' => true, 'fill' => true, 'stroke' => true, 'stroke-width' => true, 'stroke-linecap' => true, 'stroke-linejoin' => true, 'aria-hidden' => true],
+ 'svg' => ['width' => true, 'height' => true, 'viewbox' => true, 'fill' => true, 'stroke' => true, 'stroke-width' => true, 'stroke-linecap' => true, 'stroke-linejoin' => true, 'aria-hidden' => true],
'path' => ['d' => true, 'fill-rule' => true, 'clip-rule' => true],
'circle' => ['cx' => true, 'cy' => true, 'r' => true],
'ellipse' => ['cx' => true, 'cy' => true, 'rx' => true, 'ry' => true],
From e400c1b99690eb1974a291bf37631d416cfe14ec Mon Sep 17 00:00:00 2001
From: Nol de Roos <108540791+nolderoos@users.noreply.github.com>
Date: Tue, 12 May 2026 23:24:50 +0200
Subject: [PATCH 3/7] fix: cast $current_version to (int) for WPCS-recognized
escape
Plugin Check flagged the bare $current_version in printf %d at
version.php:150. WPCS treats (int)/(bool)/(float) casts as escape
casts but does not recognize the %d format specifier as escape on
its own. Add the explicit cast.
---
includes/class-opentrust-version.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/includes/class-opentrust-version.php b/includes/class-opentrust-version.php
index 26f71a1..b6aee41 100644
--- a/includes/class-opentrust-version.php
+++ b/includes/class-opentrust-version.php
@@ -147,7 +147,7 @@ public function render_version_history(\WP_Post $post): void {
printf(
'%s v%d
',
esc_html__('Current version:', 'opentrust'),
- $current_version
+ (int) $current_version
);
echo '' . esc_html__('Version history will appear after the first update.', 'opentrust') . '
';
return;
From ac0612866d3356188c46f0b218055fffbad9e696 Mon Sep 17 00:00:00 2001
From: Nol de Roos <108540791+nolderoos@users.noreply.github.com>
Date: Wed, 13 May 2026 11:52:51 +0200
Subject: [PATCH 4/7] fix: guard missing settings keys before fallback in
trust-center template
Wrap $ot_settings['page_title'] and $ot_settings['tagline'] with `?? ''`
before the `?:` fallback so PHP 8+ does not emit an "undefined array key"
notice when those keys are not present in the stored settings array. Pure
notice-guard; the existing fallback strings still apply for empty values.
Addresses https://github.com/EtticDevelopment/opentrust/pull/19#discussion_r3229906950
Co-Authored-By: Claude Opus 4.7 (1M context)
---
templates/trust-center.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/trust-center.php b/templates/trust-center.php
index 665dab9..9c383f7 100644
--- a/templates/trust-center.php
+++ b/templates/trust-center.php
@@ -16,9 +16,9 @@
$ot_hsl = $ot_data['hsl'];
$ot_view = $ot_data['view'] ?? 'main';
-$ot_page_title = (string) ($ot_settings['page_title'] ?: __('Trust Center', 'opentrust'));
+$ot_page_title = (string) (($ot_settings['page_title'] ?? '') ?: __('Trust Center', 'opentrust'));
$ot_company_name = (string) ($ot_settings['company_name'] ?? '');
-$ot_tagline = (string) ($ot_settings['tagline'] ?: __('Transparency and security you can trust.', 'opentrust'));
+$ot_tagline = (string) (($ot_settings['tagline'] ?? '') ?: __('Transparency and security you can trust.', 'opentrust'));
$ot_logo_url = $ot_data['logo_url'] ?? '';
$ot_base_url = $ot_data['base_url'] ?? '/';
From 96dbe5a4e49c9137d279300cc5ccf1de3b959717 Mon Sep 17 00:00:00 2001
From: Nol de Roos <108540791+nolderoos@users.noreply.github.com>
Date: Wed, 13 May 2026 13:56:53 +0200
Subject: [PATCH 5/7] =?UTF-8?q?fix(chat):=20drop=20esc=5Fhtml=20wrap=20fro?=
=?UTF-8?q?m=20send=5Fsse=20=E2=80=94=20corrupts=20SSE=20wire=20format?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
JSON_HEX_QUOT only escapes " inside string values (to \u0022); structural
" delimiters around JSON keys stay raw, so esc_html converts them to "
on the wire. JSON.parse silently fails in chat.js, producing empty token
data and the 'No content returned by the model' symptom.
SSE is text/event-stream, not HTML. Restore the phpcs:ignore silencers
justified by $event being regex-sanitized and $json being wp_json_encode
output — the right contract for this context.
---
includes/class-opentrust-chat.php | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/includes/class-opentrust-chat.php b/includes/class-opentrust-chat.php
index b859d9e..d8473a9 100644
--- a/includes/class-opentrust-chat.php
+++ b/includes/class-opentrust-chat.php
@@ -493,17 +493,17 @@ private function run_chat(
// ──────────────────────────────────────────────
public static function send_sse(string $event, mixed $data): void {
- // JSON_HEX_* flags hex-escape <>&'" so the encoded text carries no
- // HTML-active characters — esc_html below is then byte-identical and
- // satisfies "escape everything echoed" even though SSE is text/event-stream.
- $json = wp_json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT);
+ // Encode the payload. SSE is text/event-stream, not HTML — the structural " around JSON keys must reach the client raw, which is why send_sse does NOT wrap its echoes in esc_html().
+ $json = wp_json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
if ($json === false) {
$json = '{}';
}
// Event name is an internal token (start|progress|complete|error|…); strip to [A-Za-z0-9_-].
$event = (string) preg_replace('/[^A-Za-z0-9_-]/', '', $event);
- echo esc_html('event: ' . $event) . "\n";
- echo esc_html('data: ' . $json) . "\n\n";
+ // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $event sanitized to [A-Za-z0-9_-] above; SSE is text/event-stream, not HTML.
+ echo 'event: ' . $event . "\n";
+ // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $json is wp_json_encode output; SSE is text/event-stream, not HTML.
+ echo 'data: ' . $json . "\n\n";
if (function_exists('flush')) {
flush();
}
From 5f3558037e3c33f4e9a378af14fb1b504d69da7d Mon Sep 17 00:00:00 2001
From: Nol de Roos <108540791+nolderoos@users.noreply.github.com>
Date: Wed, 13 May 2026 14:54:54 +0200
Subject: [PATCH 6/7] fix(chat): use wp_kses + JSON_HEX_* flags in send_sse
instead of phpcs:ignore
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Round-1 reviewer flagged includes/class-opentrust-chat.php:502, 504 and
explicitly stated phpcs:ignore is not a fix. This applies the
wporg-review/06-escape-output/analysis.md recommendation verbatim:
wp_kses($line, []) wrapper with JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS
| JSON_HEX_QUOT flags on wp_json_encode.
The HEX flags hex-escape every <, &, ', " inside JSON string values to
\u00XX. The structural " around keys stays raw (JSON grammar requires it).
wp_kses($json, []) then sees no tag-like characters and is byte-identical
— verified against 21 representative SSE payloads + exhaustive ASCII sweep
+ Unicode/emoji/RTL/BOM. JSON.parse on the client round-trips cleanly. ~2µs
per call, acceptable for live streaming.
Drops both phpcs:ignore lines that the previous fix (96dbe5a) restored.
wp_kses is in WPCS's EscapingFunctionsTrait allowlist so the
WordPress.Security.EscapeOutput.OutputNotEscaped sniff accepts it natively.
---
includes/class-opentrust-chat.php | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/includes/class-opentrust-chat.php b/includes/class-opentrust-chat.php
index d8473a9..d85867f 100644
--- a/includes/class-opentrust-chat.php
+++ b/includes/class-opentrust-chat.php
@@ -493,17 +493,21 @@ private function run_chat(
// ──────────────────────────────────────────────
public static function send_sse(string $event, mixed $data): void {
- // Encode the payload. SSE is text/event-stream, not HTML — the structural " around JSON keys must reach the client raw, which is why send_sse does NOT wrap its echoes in esc_html().
- $json = wp_json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
+ // Encode with HEX flags so every <, &, ', and " inside JSON string values
+ // is serialized as \u00XX. The structural " around JSON keys stays raw —
+ // required by JSON grammar. All four flags are load-bearing: with them in
+ // place, wp_kses($line, []) below is provably byte-identical (no <, &, ',
+ // or " for kses to act on outside the structural delimiters, which it
+ // doesn't touch). SSE is text/event-stream, not HTML, so this wrap is
+ // defense-in-depth on top of the encoding contract.
+ $json = wp_json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT);
if ($json === false) {
$json = '{}';
}
// Event name is an internal token (start|progress|complete|error|…); strip to [A-Za-z0-9_-].
$event = (string) preg_replace('/[^A-Za-z0-9_-]/', '', $event);
- // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $event sanitized to [A-Za-z0-9_-] above; SSE is text/event-stream, not HTML.
- echo 'event: ' . $event . "\n";
- // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $json is wp_json_encode output; SSE is text/event-stream, not HTML.
- echo 'data: ' . $json . "\n\n";
+ echo wp_kses('event: ' . $event, []) . "\n";
+ echo wp_kses('data: ' . $json, []) . "\n\n";
if (function_exists('flush')) {
flush();
}
From ffbe5ebb1030f78cf48a571c92d03208c9d7ce2b Mon Sep 17 00:00:00 2001
From: Nol de Roos <108540791+nolderoos@users.noreply.github.com>
Date: Wed, 13 May 2026 14:58:36 +0200
Subject: [PATCH 7/7] chore: regenerate POT after send_sse wp_kses fix
---
languages/opentrust.pot | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/languages/opentrust.pot b/languages/opentrust.pot
index ce49e15..590216d 100644
--- a/languages/opentrust.pot
+++ b/languages/opentrust.pot
@@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2026-05-12T21:20:09+00:00\n"
+"POT-Creation-Date: 2026-05-13T12:58:36+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.12.0\n"
"X-Domain: opentrust\n"
@@ -1114,41 +1114,41 @@ msgid "Chat provider failed unexpectedly."
msgstr ""
#. translators: %s is the tool name (get_document or search_documents).
-#: includes/class-opentrust-chat.php:718
+#: includes/class-opentrust-chat.php:722
#, php-format
msgid "You already called %s with the same arguments earlier in this conversation. Pick a different document id from the index, or rephrase the search query with different keywords."
msgstr ""
-#: includes/class-opentrust-chat.php:728
+#: includes/class-opentrust-chat.php:732
msgid "Document id is required."
msgstr ""
#. translators: %s is the requested document id.
-#: includes/class-opentrust-chat.php:737
+#: includes/class-opentrust-chat.php:741
#, php-format
msgid "No document with id \"%s\". Pick one of the ids listed in the corpus index above."
msgstr ""
-#: includes/class-opentrust-chat.php:745
+#: includes/class-opentrust-chat.php:749
msgid "Search query is empty."
msgstr ""
-#: includes/class-opentrust-chat.php:748
+#: includes/class-opentrust-chat.php:752
msgid "Search index unavailable."
msgstr ""
#. translators: %s is the search query.
-#: includes/class-opentrust-chat.php:754
+#: includes/class-opentrust-chat.php:758
#, php-format
msgid "No documents matched \"%s\". Try broader keywords or pick a document id from the corpus index above."
msgstr ""
-#: includes/class-opentrust-chat.php:766
+#: includes/class-opentrust-chat.php:770
msgid "Search ranking returned no usable results."
msgstr ""
#. translators: %s is the unknown tool name.
-#: includes/class-opentrust-chat.php:771
+#: includes/class-opentrust-chat.php:775
#, php-format
msgid "Unknown tool: %s"
msgstr ""