Pledge: remove "number of employees" field

This field isn't necessary because we will be counting the number
of confirmed contributor posts associated with the pledge instead.
This commit is contained in:
Corey McKrill 2019-10-25 12:10:44 -07:00
parent ff32359648
commit 701af36fa8
No known key found for this signature in database
GPG key ID: C2C0746F7BF17E38
2 changed files with 4 additions and 24 deletions

View file

@ -56,12 +56,6 @@ function get_pledge_meta_config( $context = '' ) {
'show_in_rest' => false,
'php_filter' => FILTER_VALIDATE_EMAIL,
),
'org-number-employees' => array(
'single' => true,
'sanitize_callback' => 'absint',
'show_in_rest' => false,
'php_filter' => FILTER_VALIDATE_INT,
),
);
$generated = array(

View file

@ -60,17 +60,3 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
echo esc_html( $data['org-description'] );
/* phpcs:ignore */ ?></textarea>
</div>
<div class="form-field">
<label for="5ftf-org-number-employees">
<?php esc_html_e( 'Number of Employees Being Contributed', 'wordpressorg' ); ?>
</label>
<input
type="number"
id="5ftf-org-number-employees"
name="org-number-employees"
value="<?php echo esc_attr( $data['org-number-employees'] ); ?>"
required
<?php echo $readonly ? 'readonly' : ''; ?>
/>
</div>