Pledges: Rename input field to match handler expectation.

Previously the field wasn't being saved when a new pledge was created.
This commit is contained in:
Ian Dunn 2019-10-21 12:41:58 -07:00
parent fff279aa34
commit 2927532544
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
3 changed files with 11 additions and 5 deletions

View file

@ -60,6 +60,12 @@ function get_pledge_meta_config( $context = '' ) {
'show_in_rest' => false,
'php_filter' => FILTER_VALIDATE_INT,
),
'org-pledge-contributors' => array(
'single' => true,
'sanitize_callback' => 'sanitize_text_field',
'show_in_rest' => false,
'php_filter' => FILTER_SANITIZE_STRING,
),
);
$generated = array(