use esc_sql

This commit is contained in:
Matthias Pfefferle 2023-07-07 14:54:28 +02:00
parent 5b712fb7cd
commit d00b7b54f2

View file

@ -107,7 +107,7 @@ class Followers {
'type' => 'string', 'type' => 'string',
'single' => true, 'single' => true,
'sanitize_callback' => function( $value ) { 'sanitize_callback' => function( $value ) {
return sanitize_text_field( $value ); return esc_sql( $value );
}, },
) )
); );