giacomo-secchi / write-poetry

The Swiss knife plugin designed for developers and advanced users. Unlock the full potential of WordPress with this versatile tool. Empower your workflow without getting your hands dirty.
https://write-poetry.com/
2 stars 0 forks source link

Sanitize backend fields #24

Open giacomo-secchi opened 11 months ago

giacomo-secchi commented 11 months ago

Some guide about sanification https://tommcfarlin.com/validation-and-sanitization-wordpress-settings-api/ https://konstantin.blog/2012/the-wordpress-settings-api/ (Only sanification section) https://codex.wordpress.org/Creating_Options_Pages Sanitize function doesn't receive $args passed so it is impossible to go any further until this bug isn't solved Reference of the problem: https://github.com/giacomo-secchi/write-poetry/blob/908699814132696dbccb41a1fca86bd1fc26e300/inc/Pages/Admin/SettingsPage.php#L154C6-L154C23