From cd8a518fb6933f08b20bb3673ff22769c35cf6e2 Mon Sep 17 00:00:00 2001 From: Alan Jacob Mathew <33965848+alanjacobmathew@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:17:58 +0530 Subject: [PATCH] Update import.php Make the link clickable and open the manage page. --- src/php/views/import.php | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) 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(), + ) + ) + ); + ?>