Code Duplication    Length = 4-4 lines in 6 locations

wp-admin/edit-tags.php 1 location

@@ 320-323 (lines=4) @@
317
318
<div class="wrap nosubsub">
319
<h1><?php echo esc_html( $title );
320
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
321
	/* translators: %s: search keywords */
322
	printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( wp_unslash( $_REQUEST['s'] ) ) );
323
}
324
?>
325
</h1>
326

wp-admin/edit.php 1 location

@@ 307-310 (lines=4) @@
304
if ( current_user_can( $post_type_object->cap->create_posts ) )
305
	echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
306
307
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
308
	/* translators: %s: search keywords */
309
	printf( ' <span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', get_search_query() );
310
}
311
?></h1>
312
313
<?php

wp-admin/link-manager.php 1 location

@@ 77-80 (lines=4) @@
74
75
<div class="wrap nosubsub">
76
<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
77
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
78
	/* translators: %s: search keywords */
79
	printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( wp_unslash( $_REQUEST['s'] ) ) );
80
}
81
?>
82
</h1>
83

wp-admin/network/sites.php 1 location

@@ 292-295 (lines=4) @@
289
<?php endif; ?>
290
291
<?php
292
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
293
	/* translators: %s: search keywords */
294
	printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $s ) );
295
} ?>
296
</h1>
297
298
<?php echo $msg; ?>

wp-admin/network/themes.php 1 location

@@ 240-243 (lines=4) @@
237
238
<div class="wrap">
239
<h1><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="page-title-action"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php }
240
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
241
	/* translators: %s: search keywords */
242
	printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $s ) );
243
}
244
?>
245
</h1>
246

wp-admin/upload.php 1 location

@@ 227-230 (lines=4) @@
224
if ( current_user_can( 'upload_files' ) ) { ?>
225
	<a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x('Add New', 'file'); ?></a><?php
226
}
227
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
228
	/* translators: %s: search keywords */
229
	printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', get_search_query() );
230
}
231
?>
232
</h1>
233