Code Duplication    Length = 3-3 lines in 2 locations

src/wp-admin/upload.php 2 locations

@@ 79-81 (lines=3) @@
76
		<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
77
78
		<?php
79
		if ( current_user_can( 'upload_files' ) ) { ?>
80
			<a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action aria-button-if-js"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php
81
		}
82
		?>
83
84
		<hr class="wp-header-end">
@@ 229-231 (lines=3) @@
226
<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
227
228
<?php
229
if ( current_user_can( 'upload_files' ) ) { ?>
230
	<a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php
231
}
232
233
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
234
	/* translators: %s: search keywords */