Code Duplication    Length = 6-6 lines in 2 locations

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

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

wp-admin/user-new.php 1 location

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