Code Duplication    Length = 4-5 lines in 2 locations

src/wp-admin/includes/ajax-actions.php 2 locations

@@ 26-29 (lines=4) @@
23
	$response = array();
24
25
	// screen_id is the same as $current_screen->id and the JS global 'pagenow'.
26
	if ( ! empty($_POST['screen_id']) )
27
		$screen_id = sanitize_key($_POST['screen_id']);
28
	else
29
		$screen_id = 'front';
30
31
	if ( ! empty($_POST['data']) ) {
32
		$data = wp_unslash( (array) $_POST['data'] );
@@ 2783-2787 (lines=5) @@
2780
	$nonce_state = wp_verify_nonce( $_POST['_nonce'], 'heartbeat-nonce' );
2781
2782
	// screen_id is the same as $current_screen->id and the JS global 'pagenow'.
2783
	if ( ! empty( $_POST['screen_id'] ) ) {
2784
		$screen_id = sanitize_key($_POST['screen_id']);
2785
	} else {
2786
		$screen_id = 'front';
2787
	}
2788
2789
	if ( ! empty( $_POST['data'] ) ) {
2790
		$data = wp_unslash( (array) $_POST['data'] );