mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-03 17:51:18 +03:00
Fix email field
This commit is contained in:
parent
001c8ee243
commit
b032fa914d
|
@ -43,7 +43,7 @@ function get_pledge_meta_config( $context = '' ) {
|
||||||
'show_in_rest' => true,
|
'show_in_rest' => true,
|
||||||
'php_filter' => FILTER_VALIDATE_URL,
|
'php_filter' => FILTER_VALIDATE_URL,
|
||||||
),
|
),
|
||||||
'pledge-email' => array(
|
'org-pledge-email' => array(
|
||||||
'single' => true,
|
'single' => true,
|
||||||
'sanitize_callback' => 'sanitize_email',
|
'sanitize_callback' => 'sanitize_email',
|
||||||
'show_in_rest' => false,
|
'show_in_rest' => false,
|
||||||
|
|
|
@ -6,15 +6,15 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="form-field">
|
<div class="form-field">
|
||||||
<label for="5ftf-pledge-email" class="screen-reader-text">
|
<label for="5ftf-pledge-email">
|
||||||
<?php esc_html_e( 'Email', 'wordpressorg' ); ?>
|
<?php esc_html_e( 'Contact Email', 'wordpressorg' ); ?>
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="email"
|
type="email"
|
||||||
class="large-text"
|
class="large-text"
|
||||||
id="5ftf-pledge-email"
|
id="5ftf-pledge-email"
|
||||||
name="org-pledge-email"
|
name="org-pledge-email"
|
||||||
value="<?php echo esc_attr( $data['pledge-email'] ); ?>"
|
value="<?php echo esc_attr( $data['org-pledge-email'] ); ?>"
|
||||||
required
|
required
|
||||||
<?php echo $readonly ? 'readonly' : ''; ?>
|
<?php echo $readonly ? 'readonly' : ''; ?>
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue