Pledge Form: Abstract the procedure for getting filtered post input

This commit is contained in:
Corey McKrill 2019-10-17 16:12:53 -07:00
parent 1405ff138a
commit c520d26527
No known key found for this signature in database
GPG key ID: C2C0746F7BF17E38
4 changed files with 124 additions and 31 deletions

View file

@ -12,11 +12,12 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
<input
type="checkbox"
id="5ftf-pledge-agree"
name="pledge-agree"
id="5ftf-pledge-agreement"
name="pledge-agreement"
required
<?php checked( $data['pledge-agreement'] ); ?>
/>
<label for="5ftf-pledge-agree">
<label for="5ftf-pledge-agreement">
<?php esc_html_e( 'I agree', 'wordpressorg' ); ?>
</label>
</div>