wp/wp-admin/link-manager.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    75 );
    75 );
    76 
    76 
    77 get_current_screen()->set_help_sidebar(
    77 get_current_screen()->set_help_sidebar(
    78 	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    78 	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    79 	'<p>' . __( '<a href="https://codex.wordpress.org/Links_Screen">Documentation on Managing Links</a>' ) . '</p>' .
    79 	'<p>' . __( '<a href="https://codex.wordpress.org/Links_Screen">Documentation on Managing Links</a>' ) . '</p>' .
    80 	'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    80 	'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
    81 );
    81 );
    82 
    82 
    83 get_current_screen()->set_screen_reader_content(
    83 get_current_screen()->set_screen_reader_content(
    84 	array(
    84 	array(
    85 		'heading_list' => __( 'Links list' ),
    85 		'heading_list' => __( 'Links list' ),
    99 <?php
    99 <?php
   100 echo esc_html( $title );
   100 echo esc_html( $title );
   101 ?>
   101 ?>
   102 </h1>
   102 </h1>
   103 
   103 
   104 <a href="link-add.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'link' ); ?></a>
   104 <a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a>
   105 
   105 
   106 <?php
   106 <?php
   107 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
   107 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
   108 	echo '<span class="subtitle">';
   108 	echo '<span class="subtitle">';
   109 	printf(
   109 	printf(
   117 
   117 
   118 <hr class="wp-header-end">
   118 <hr class="wp-header-end">
   119 
   119 
   120 <?php
   120 <?php
   121 if ( isset( $_REQUEST['deleted'] ) ) {
   121 if ( isset( $_REQUEST['deleted'] ) ) {
   122 	echo '<div id="message" class="updated notice is-dismissible"><p>';
       
   123 	$deleted = (int) $_REQUEST['deleted'];
   122 	$deleted = (int) $_REQUEST['deleted'];
   124 	/* translators: %s: Number of links. */
   123 	/* translators: %s: Number of links. */
   125 	printf( _n( '%s link deleted.', '%s links deleted.', $deleted ), $deleted );
   124 	$deleted_message = sprintf( _n( '%s link deleted.', '%s links deleted.', $deleted ), $deleted );
   126 	echo '</p></div>';
   125 	wp_admin_notice(
       
   126 		$deleted_message,
       
   127 		array(
       
   128 			'id'                 => 'message',
       
   129 			'additional_classes' => array( 'updated' ),
       
   130 			'dismissible'        => true,
       
   131 		)
       
   132 	);
   127 	$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'deleted' ), $_SERVER['REQUEST_URI'] );
   133 	$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'deleted' ), $_SERVER['REQUEST_URI'] );
   128 }
   134 }
   129 ?>
   135 ?>
   130 
   136 
   131 <form id="posts-filter" method="get">
   137 <form id="posts-filter" method="get">