Skip to content

Commit 60fbdc1

Browse files
refactor: move translatable strings outside HTML
1 parent 256e7eb commit 60fbdc1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

views/wizard.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@
3131
</div>
3232
<p class="description">
3333
<?php
34-
printf(
35-
wp_kses(
36-
/* translators: Otter url */
37-
__( '<strong>Pick a template to get started. <a href="%1$s" target="_blank">Otter Blocks</a> plugin will be installed and activated to support and customize your layout.</strong> It also unlocks tools like forms and popups - if you need them later.', 'wp-maintenance-mode' ),
38-
wpmm_translated_string_allowed_html()
39-
),
34+
echo wp_kses(
35+
sprintf(
36+
'<strong>%1$s <a href="%2$s" target="_blank">%3$s</a></strong> %4$s',
37+
__( 'Pick a template to get started.', 'wp-maintenance-mode' ),
4038
tsdk_utmify( 'https://themeisle.com/plugins/otter-blocks/', $this->plugin_slug, 'wizard' ),
41-
);
39+
__( 'Otter Blocks', 'wp-maintenance-mode' ),
40+
__( 'It also unlocks tools like forms and popups - if you need them later.', 'wp-maintenance-mode' ),
41+
),
42+
wpmm_translated_string_allowed_html()
43+
);
4244
?>
4345
</p>
4446
</div>

0 commit comments

Comments
 (0)