diff --git a/src/php/views/import.php b/src/php/views/import.php index 02fe0cf3..95e745e4 100644 --- a/src/php/views/import.php +++ b/src/php/views/import.php @@ -42,12 +42,20 @@
All Snippets page to activate the imported snippets.', 'code-snippets' ); - - printf( wp_kses( $text, [ 'a' => [ 'href' ] ] ), esc_url( code_snippets()->get_menu_url( 'manage' ) ) ); - - ?> + /* translators: %s: link to snippets admin menu */ + $text = __( 'Afterward, you will need to visit the All Snippets page to activate the imported snippets.', 'code-snippets' ); + $url = esc_url( code_snippets()->get_menu_url( 'manage' ) ); + + echo wp_kses( + sprintf( $text, $url ), + array( + 'a' => array( + 'href' => array(), + 'target' => array(), + ) + ) + ); + ?>