Code Duplication    Length = 4-4 lines in 5 locations

wp-admin/edit-comments.php 1 location

@@ 106-109 (lines=4) @@
103
104
	wp_safe_redirect( $redirect_to );
105
	exit;
106
} elseif ( ! empty( $_GET['_wp_http_referer'] ) ) {
107
	 wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) );
108
	 exit;
109
}
110
111
$wp_list_table->prepare_items();
112

wp-admin/edit.php 1 location

@@ 171-174 (lines=4) @@
168
169
	wp_redirect($sendback);
170
	exit();
171
} elseif ( ! empty($_REQUEST['_wp_http_referer']) ) {
172
	 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), wp_unslash($_SERVER['REQUEST_URI']) ) );
173
	 exit;
174
}
175
176
$wp_list_table->prepare_items();
177

wp-admin/link-manager.php 1 location

@@ 33-36 (lines=4) @@
30
		wp_redirect( add_query_arg('deleted', count( $bulklinks ), admin_url( 'link-manager.php' ) ) );
31
		exit;
32
	}
33
} elseif ( ! empty( $_GET['_wp_http_referer'] ) ) {
34
	 wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) );
35
	 exit;
36
}
37
38
$wp_list_table->prepare_items();
39

wp-admin/upload.php 1 location

@@ 170-173 (lines=4) @@
167
168
	wp_redirect( $location );
169
	exit;
170
} elseif ( ! empty( $_GET['_wp_http_referer'] ) ) {
171
	 wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) );
172
	 exit;
173
}
174
175
$wp_list_table->prepare_items();
176

wp-admin/users.php 1 location

@@ 408-411 (lines=4) @@
405
406
default:
407
408
	if ( !empty($_GET['_wp_http_referer']) ) {
409
		wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce'), wp_unslash( $_SERVER['REQUEST_URI'] ) ) );
410
		exit;
411
	}
412
413
	$wp_list_table->prepare_items();
414
	$total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );