mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-07 03:05:44 +03:00
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:
parent
fff279aa34
commit
2927532544
3 changed files with 11 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue