--- a/wp/wp-admin/link-manager.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-admin/link-manager.php Fri Sep 05 18:40:08 2025 +0200
@@ -77,7 +77,7 @@
get_current_screen()->set_help_sidebar(
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
'<p>' . __( '<a href="https://codex.wordpress.org/Links_Screen">Documentation on Managing Links</a>' ) . '</p>' .
- '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
+ '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);
get_current_screen()->set_screen_reader_content(
@@ -101,7 +101,7 @@
?>
</h1>
-<a href="link-add.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'link' ); ?></a>
+<a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a>
<?php
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
@@ -119,11 +119,17 @@
<?php
if ( isset( $_REQUEST['deleted'] ) ) {
- echo '<div id="message" class="updated notice is-dismissible"><p>';
$deleted = (int) $_REQUEST['deleted'];
/* translators: %s: Number of links. */
- printf( _n( '%s link deleted.', '%s links deleted.', $deleted ), $deleted );
- echo '</p></div>';
+ $deleted_message = sprintf( _n( '%s link deleted.', '%s links deleted.', $deleted ), $deleted );
+ wp_admin_notice(
+ $deleted_message,
+ array(
+ 'id' => 'message',
+ 'additional_classes' => array( 'updated' ),
+ 'dismissible' => true,
+ )
+ );
$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'deleted' ), $_SERVER['REQUEST_URI'] );
}
?>