From 782a40bcda37a19b8bbee7fc94af37574b16a3fb Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Wed, 30 Oct 2019 12:30:00 -0700 Subject: [PATCH] Pledge Form: Improve contributor username field UX. --- plugins/wporg-5ftf/includes/pledge-form.php | 1 + plugins/wporg-5ftf/views/inputs-pledge-contributors.php | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/wporg-5ftf/includes/pledge-form.php b/plugins/wporg-5ftf/includes/pledge-form.php index bd2cb15..88edf65 100755 --- a/plugins/wporg-5ftf/includes/pledge-form.php +++ b/plugins/wporg-5ftf/includes/pledge-form.php @@ -310,6 +310,7 @@ function parse_contributors( $contributors ) { $invalid_contributors = array(); $sanitized_contributors = array(); + $contributors = str_replace( '@', '', $contributors ); $contributors = explode( ',', $contributors ); foreach ( $contributors as $wporg_username ) { diff --git a/plugins/wporg-5ftf/views/inputs-pledge-contributors.php b/plugins/wporg-5ftf/views/inputs-pledge-contributors.php index d1f8cc2..7ed7412 100644 --- a/plugins/wporg-5ftf/views/inputs-pledge-contributors.php +++ b/plugins/wporg-5ftf/views/inputs-pledge-contributors.php @@ -14,6 +14,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View; id="5ftf-pledge-contributors" name="pledge-contributors" value="" + placeholder="zoe, mal, kaylee" required aria-describedby="5ftf-pledge-contributors-help" />