Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 76-81 (lines=6) @@
73
			}
74
		}
75
76
		if ( empty( $edit_link ) ) {
77
			$messages[] = __( 'User added.' );
78
		} else {
79
			/* translators: %s: edit page url */
80
			$messages[] = sprintf( __( 'User added. <a href="%s">Edit user</a>' ), $edit_link );
81
		}
82
	}
83
}
84

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

@@ 254-259 (lines=6) @@
251
				$messages[] = __('Invitation email sent to user. A confirmation link must be clicked for them to be added to your site.');
252
				break;
253
			case "addnoconfirmation":
254
				if ( empty( $edit_link ) ) {
255
					$messages[] = __( 'User has been added to your site.' );
256
				} else {
257
					/* translators: %s: edit page url */
258
					$messages[] = sprintf( __( 'User has been added to your site. <a href="%s">Edit user</a>' ), $edit_link );
259
				}
260
				break;
261
			case "addexisting":
262
				$messages[] = __('That user is already a member of this site.');