mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 11:03:43 +03:00
Pledge Form: Improve contributor username field UX.
This commit is contained in:
parent
df78e3de80
commit
782a40bcda
|
@ -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 ) {
|
||||||
|
|
|
@ -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"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue