Skip to content

Commit

Permalink
Merge pull request #210 from alanjacobmathew/import-snippet-link-update
Browse files Browse the repository at this point in the history
Update import.php
  • Loading branch information
sheabunge authored Dec 20, 2024
2 parents 89e516d + cd8a518 commit be10007
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/php/views/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,20 @@

<p>
<?php
/* translators: %s: link to snippets admin menu */
$text = __( 'Afterward, you will need to visit the <a href="%s">All Snippets</a> 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 <a href="%s" >All Snippets</a> 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(),
)
)
);
?>
</p>


Expand Down

0 comments on commit be10007

Please sign in to comment.