]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/link-manager.php
Wordpress 4.5.3-scripts
[autoinstalls/wordpress.git] / wp-admin / link-manager.php
index 5cf80cdf2cba1daec433689c8fffbaec0703bee9..4dc3015179ac788d8a8589061829cadad30eda6f 100644 (file)
@@ -74,8 +74,11 @@ if ( ! current_user_can('manage_links') )
 
 <div class="wrap nosubsub">
 <h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="page-title-action"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php
-if ( !empty($_REQUEST['s']) )
-       printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?>
+if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
+       /* translators: %s: search keywords */
+       printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( wp_unslash( $_REQUEST['s'] ) ) );
+}
+?>
 </h1>
 
 <?php