You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -136,7 +136,8 @@ private function load_manage_help() {
136
136
[
137
137
__( 'Be sure to check your snippets for errors before you activate them, as a faulty snippet could bring your whole blog down. If your site starts doing strange things, deactivate all your snippets and activate them one at a time.', 'code-snippets' ),
138
138
__( "If something goes wrong with a snippet, and you can't use WordPress, you can cause all snippets to stop executing by turning on <strong>safe mode</strong>.", 'code-snippets' ),
139
-
__( 'You can find out how to enable safe mode in the <a href="https://help.codesnippets.pro/article/12-safe-mode">Code Snippets Pro Docs</a>.', 'code-snippets' ),
139
+
/* translators: %s: URL to Code Snippets Pro Docs */
140
+
sprintf( __( 'You can find out how to enable safe mode in the <a href="%s">Code Snippets Pro Docs</a>.', 'code-snippets' ), 'https://help.codesnippets.pro/article/12-safe-mode' )
140
141
]
141
142
);
142
143
}
@@ -151,7 +152,8 @@ private function load_edit_help() {
151
152
[
152
153
$this->get_intro_text() .
153
154
__( 'Here you can add a new snippet, or edit an existing one.', 'code-snippets' ),
154
-
__( "If you're not sure about the types of snippets you can add, take a look at the <a href=\"https://help.codesnippets.pro/collection/2-adding-snippets\">Code Snippets Pro Docs</a> for inspiration.", 'code-snippets' ),
155
+
/* translators: %s: URL to Code Snippets Pro Docs */
156
+
sprintf( __( "If you're not sure about the types of snippets you can add, take a look at the <a href=\"%s\">Code Snippets Pro Docs</a> for inspiration.", 'code-snippets' ), 'https://help.codesnippets.pro/collection/2-adding-snippets' ),
155
157
]
156
158
);
157
159
@@ -160,7 +162,7 @@ private function load_edit_help() {
160
162
__( 'Adding Snippets', 'code-snippets' ),
161
163
[
162
164
__( 'You need to fill out the name and code fields for your snippet to be added. While the description field will add more information about how your snippet works, what is does and where you found it, it is completely optional.', 'code-snippets' ),
163
-
__( 'Please be sure to check that your snippet is valid PHP code and will not produce errors before adding it through this page. While doing so will not become active straight away, it will help to minimise the chance of a faulty snippet becoming active on your site.', 'code-snippets' ),
165
+
__( 'Please be sure to check that your snippet is valid PHP code and will not produce errors before adding it through this page. While doing so will not become active straight away, it will help to minimize the chance of a faulty snippet becoming active on your site.', 'code-snippets' ),
Copy file name to clipboardExpand all lines: src/php/front-end/class-front-end.php
+4-3
Original file line number
Diff line number
Diff line change
@@ -303,11 +303,12 @@ public function render_content_shortcode( array $atts ): string {
303
303
}
304
304
305
305
/* translators: 1: snippet name, 2: snippet edit link */
306
-
$text = __( '<strong>%1$s</strong> is currently inactive. You can <a href="%2$s">edit this snippet</a> to activate it and make it visible. This message will not appear in the published post.', 'code-snippets' );
307
-
306
+
$text = __( '%1$s is currently inactive. You can <a href="%2$s">edit this snippet</a> to activate it and make it visible. This message will not appear in the published post.', 'code-snippets' );
<?phpechowp_kses_post( __( '<strong>Warning:</strong> Safe mode is active and snippets will not execute! Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-config.php</code> to turn off safe mode.', 'code-snippets' ) ); ?>
21
+
<?php
22
+
printf(
23
+
'<strong>%s</strong> %s',
24
+
esc_html__( 'Warning:', 'code-snippets' ),
25
+
sprintf(
26
+
// translators: 1: constant name, 2: file name.
27
+
esc_html__( 'Safe mode is active and snippets will not execute! Remove the %1$s constant from %2$s file to turn off safe mode.', 'code-snippets' )
0 commit comments