Replace deprecated SANITIZE_STRING filter with UNSAFE_RAW.

`FILTER_UNSAFE_RAW` doesn't strip HTML tags like `FILTER_SANITIZE_STRING` did, but some of these are being run through `sanitize_text_field` as well, and the others aren't being output or saved to the database.

See https://stackoverflow.com/a/69207369/450127
This commit is contained in:
Ian Dunn 2022-07-19 09:49:23 -07:00
parent 87979f588f
commit bb0216adc6
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
3 changed files with 7 additions and 7 deletions

View file

@ -49,7 +49,7 @@ function get_pledge_meta_config( $subset = 'all' ) {
'sanitize_callback' => 'sanitize_text_field',
'show_in_rest' => true,
'context' => array( 'create', 'update' ),
'php_filter' => FILTER_SANITIZE_STRING,
'php_filter' => FILTER_UNSAFE_RAW,
),
'org-url' => array(
'single' => true,