mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-03 01:31:17 +03:00
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:
parent
ff32359648
commit
701af36fa8
|
@ -32,36 +32,30 @@ add_action( 'added_post_meta', __NAMESPACE__ . '\update_generated_meta', 10, 4
|
||||||
*/
|
*/
|
||||||
function get_pledge_meta_config( $context = '' ) {
|
function get_pledge_meta_config( $context = '' ) {
|
||||||
$user_input = array(
|
$user_input = array(
|
||||||
'org-description' => array(
|
'org-description' => array(
|
||||||
'single' => true,
|
'single' => true,
|
||||||
'sanitize_callback' => 'sanitize_text_field',
|
'sanitize_callback' => 'sanitize_text_field',
|
||||||
'show_in_rest' => true,
|
'show_in_rest' => true,
|
||||||
'php_filter' => FILTER_SANITIZE_STRING,
|
'php_filter' => FILTER_SANITIZE_STRING,
|
||||||
),
|
),
|
||||||
'org-name' => array(
|
'org-name' => array(
|
||||||
'single' => true,
|
'single' => true,
|
||||||
'sanitize_callback' => 'sanitize_text_field',
|
'sanitize_callback' => 'sanitize_text_field',
|
||||||
'show_in_rest' => true,
|
'show_in_rest' => true,
|
||||||
'php_filter' => FILTER_SANITIZE_STRING,
|
'php_filter' => FILTER_SANITIZE_STRING,
|
||||||
),
|
),
|
||||||
'org-url' => array(
|
'org-url' => array(
|
||||||
'single' => true,
|
'single' => true,
|
||||||
'sanitize_callback' => 'esc_url_raw',
|
'sanitize_callback' => 'esc_url_raw',
|
||||||
'show_in_rest' => true,
|
'show_in_rest' => true,
|
||||||
'php_filter' => FILTER_VALIDATE_URL,
|
'php_filter' => FILTER_VALIDATE_URL,
|
||||||
),
|
),
|
||||||
'org-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,
|
||||||
'php_filter' => FILTER_VALIDATE_EMAIL,
|
'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(
|
$generated = array(
|
||||||
|
|
|
@ -60,17 +60,3 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
||||||
echo esc_html( $data['org-description'] );
|
echo esc_html( $data['org-description'] );
|
||||||
/* phpcs:ignore */ ?></textarea>
|
/* phpcs:ignore */ ?></textarea>
|
||||||
</div>
|
</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>
|
|
||||||
|
|
Loading…
Reference in a new issue