', esc_url( $url ), esc_html( $label ) );
@@ -136,7 +136,8 @@ private function load_manage_help() {
[
__( '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' ),
__( "If something goes wrong with a snippet, and you can't use WordPress, you can cause all snippets to stop executing by turning on safe mode.", 'code-snippets' ),
- __( 'You can find out how to enable safe mode in the Code Snippets Pro Docs.', 'code-snippets' ),
+ /* translators: %s: URL to Code Snippets Pro Docs */
+ sprintf( __( 'You can find out how to enable safe mode in the Code Snippets Pro Docs.', 'code-snippets' ), 'https://help.codesnippets.pro/article/12-safe-mode' )
]
);
}
@@ -151,7 +152,8 @@ private function load_edit_help() {
[
$this->get_intro_text() .
__( 'Here you can add a new snippet, or edit an existing one.', 'code-snippets' ),
- __( "If you're not sure about the types of snippets you can add, take a look at the Code Snippets Pro Docs for inspiration.", 'code-snippets' ),
+ /* translators: %s: URL to Code Snippets Pro Docs */
+ sprintf( __( "If you're not sure about the types of snippets you can add, take a look at the Code Snippets Pro Docs for inspiration.", 'code-snippets' ), 'https://help.codesnippets.pro/collection/2-adding-snippets' ),
]
);
@@ -160,7 +162,7 @@ private function load_edit_help() {
__( 'Adding Snippets', 'code-snippets' ),
[
__( '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' ),
- __( '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' ),
+ __( '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' ),
]
);
}
diff --git a/src/php/class-list-table.php b/src/php/class-list-table.php
index ecb020170..9ec9010d1 100644
--- a/src/php/class-list-table.php
+++ b/src/php/class-list-table.php
@@ -292,7 +292,7 @@ protected function column_activate( Snippet $snippet ): string {
}
return sprintf(
- ' ',
+ ' ',
esc_attr( $class ),
esc_url( $this->get_action_link( $action, $snippet ) ),
esc_attr( $label )
diff --git a/src/php/cloud/class-cloud-search-list-table.php b/src/php/cloud/class-cloud-search-list-table.php
index 69068510c..1b22b0fa8 100644
--- a/src/php/cloud/class-cloud-search-list-table.php
+++ b/src/php/cloud/class-cloud-search-list-table.php
@@ -117,7 +117,7 @@ public function display_rows() {
*/
foreach ( $this->items as $item ) {
?>
-