Code Duplication    Length = 4-5 lines in 2 locations

wp-admin/plugins.php 1 location

@@ 481-484 (lines=4) @@
478
479
<div class="wrap">
480
<h1><?php echo esc_html( $title );
481
if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
482
 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="page-title-action"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
483
<?php
484
}
485
486
if ( strlen( $s ) ) {
487
	/* translators: %s: search keywords */

wp-admin/user-edit.php 1 location

@@ 204-208 (lines=5) @@
201
<?php
202
echo esc_html( $title );
203
if ( ! IS_PROFILE_PAGE ) {
204
	if ( current_user_can( 'create_users' ) ) { ?>
205
		<a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>
206
	<?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?>
207
		<a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
208
	<?php }
209
} ?>
210
</h1>
211
<form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post" novalidate="novalidate"<?php