Code Duplication    Length = 2-3 lines in 6 locations

wp-admin/includes/class-wp-list-table.php 4 locations

@@ 352-353 (lines=2) @@
349
350
		$input_id = $input_id . '-search-input';
351
352
		if ( ! empty( $_REQUEST['orderby'] ) )
353
			echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
354
		if ( ! empty( $_REQUEST['order'] ) )
355
			echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
356
		if ( ! empty( $_REQUEST['post_mime_type'] ) )
@@ 354-355 (lines=2) @@
351
352
		if ( ! empty( $_REQUEST['orderby'] ) )
353
			echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
354
		if ( ! empty( $_REQUEST['order'] ) )
355
			echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
356
		if ( ! empty( $_REQUEST['post_mime_type'] ) )
357
			echo '<input type="hidden" name="post_mime_type" value="' . esc_attr( $_REQUEST['post_mime_type'] ) . '" />';
358
		if ( ! empty( $_REQUEST['detached'] ) )
@@ 356-357 (lines=2) @@
353
			echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
354
		if ( ! empty( $_REQUEST['order'] ) )
355
			echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
356
		if ( ! empty( $_REQUEST['post_mime_type'] ) )
357
			echo '<input type="hidden" name="post_mime_type" value="' . esc_attr( $_REQUEST['post_mime_type'] ) . '" />';
358
		if ( ! empty( $_REQUEST['detached'] ) )
359
			echo '<input type="hidden" name="detached" value="' . esc_attr( $_REQUEST['detached'] ) . '" />';
360
?>
@@ 358-359 (lines=2) @@
355
			echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
356
		if ( ! empty( $_REQUEST['post_mime_type'] ) )
357
			echo '<input type="hidden" name="post_mime_type" value="' . esc_attr( $_REQUEST['post_mime_type'] ) . '" />';
358
		if ( ! empty( $_REQUEST['detached'] ) )
359
			echo '<input type="hidden" name="detached" value="' . esc_attr( $_REQUEST['detached'] ) . '" />';
360
?>
361
<p class="search-box">
362
	<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>

wp-admin/includes/class-wp-plugins-list-table.php 2 locations

@@ 360-362 (lines=3) @@
357
358
		$input_id = $input_id . '-search-input';
359
360
		if ( ! empty( $_REQUEST['orderby'] ) ) {
361
			echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
362
		}
363
		if ( ! empty( $_REQUEST['order'] ) ) {
364
			echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
365
		}
@@ 363-365 (lines=3) @@
360
		if ( ! empty( $_REQUEST['orderby'] ) ) {
361
			echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
362
		}
363
		if ( ! empty( $_REQUEST['order'] ) ) {
364
			echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
365
		}
366
		?>
367
		<p class="search-box">
368
			<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>