Code Duplication    Length = 3-5 lines in 2 locations

modules/contact-form/admin.php 2 locations

@@ 142-146 (lines=5) @@
139
	}
140
141
	// Only add to feedback, only to spam view
142
	if ( 'edit-feedback' != $screen->id
143
	|| empty( $_GET['post_status'] )
144
	|| 'spam' !== $_GET['post_status'] ) {
145
		return;
146
	}
147
148
	// Get HTML for the button
149
	$button_html = wp_nonce_field( 'bulk-destroy', '_destroy_nonce', true, false );
@@ 797-799 (lines=3) @@
794
	$screen = get_current_screen();
795
796
	// Only add to feedback, only to non-spam view
797
	if ( 'edit-feedback' != $screen->id || ( ! empty( $_GET['post_status'] ) && 'spam' == $_GET['post_status'] ) ) {
798
		return;
799
	}
800
801
	// Add the scripts that handle the spam check event.
802
	wp_register_script(