Code Duplication    Length = 6-6 lines in 2 locations

wp-admin/network/user-new.php 1 location

@@ 72-77 (lines=6) @@
69
	$messages = array();
70
	if ( 'added' == $_GET['update'] ) {
71
		$edit_link = '';
72
		if ( isset( $_GET['user_id'] ) ) {
73
			$user_id_new = absint( $_GET['user_id'] );
74
			if ( $user_id_new ) {
75
				$edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user_id_new ) ) );
76
			}
77
		}
78
79
		if ( empty( $edit_link ) ) {
80
			$messages[] = __( 'User added.' );

wp-admin/user-new.php 1 location

@@ 232-237 (lines=6) @@
229
	$messages = array();
230
	if ( is_multisite() ) {
231
		$edit_link = '';
232
		if ( ( isset( $_GET['user_id'] ) ) ) {
233
			$user_id_new = absint( $_GET['user_id'] );
234
			if ( $user_id_new ) {
235
				$edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user_id_new ) ) );
236
			}
237
		}
238
239
		switch ( $_GET['update'] ) {
240
			case "newuserconfirmation":