Commit 7d0935f5 authored by Michael Iseard's avatar Michael Iseard
Browse files

Additional setting field sanitization

parent 99d61d66
......@@ -127,8 +127,9 @@ class Settings {
'show_in_rest' => true,
],
'smtp_port' => [
'type' => 'string',
'type' => 'number',
'show_in_rest' => true,
'sanitize_callback' => 'intval'
],
'theme_colors' => [
'type' => 'object',
......@@ -149,6 +150,7 @@ class Settings {
],
],
],
'sanitize_callback' => [$this, 'recursive_sanitize_text_field']
],
'address_enabled' => [
'type' => 'boolean',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment