Pledge Form: Improve contributor username field UX.

This commit is contained in:
Ian Dunn 2019-10-30 12:30:00 -07:00
parent df78e3de80
commit 782a40bcda
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
2 changed files with 2 additions and 0 deletions

View file

@ -310,6 +310,7 @@ function parse_contributors( $contributors ) {
$invalid_contributors = array(); $invalid_contributors = array();
$sanitized_contributors = array(); $sanitized_contributors = array();
$contributors = str_replace( '@', '', $contributors );
$contributors = explode( ',', $contributors ); $contributors = explode( ',', $contributors );
foreach ( $contributors as $wporg_username ) { foreach ( $contributors as $wporg_username ) {

View file

@ -14,6 +14,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
id="5ftf-pledge-contributors" id="5ftf-pledge-contributors"
name="pledge-contributors" name="pledge-contributors"
value="<?php echo esc_attr( $data['pledge-contributors'] ); ?>" value="<?php echo esc_attr( $data['pledge-contributors'] ); ?>"
placeholder="zoe, mal, kaylee"
required required
aria-describedby="5ftf-pledge-contributors-help" aria-describedby="5ftf-pledge-contributors-help"
/> />