Skip to content

Commit 1c28c42

Browse files
authored
Remote Reply: Set script translations (#1595)
1 parent 11270b6 commit 1c28c42

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
Reply links and popup modals are now properly translated for logged-out visitors.

includes/class-comment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ public static function enqueue_scripts() {
495495
true
496496
);
497497
\wp_add_inline_script( $handle, $js, 'before' );
498+
\wp_set_script_translations( $handle, 'activitypub' );
498499

499500
\wp_enqueue_style(
500501
$handle,

0 commit comments

Comments
 (0)