Home › Forums › Feedback › acf_form security documentation › Reply To: acf_form security documentation
I have marked this thread for E to take a look at. This is probably the best place to post something about the documentation. I don’t know if there’s anyone other than the developer that works on the documentation on the site, but I don’t think so.
While I’m here I’ll also post a function that might be used in place of calling wp_kses_post directly that should solve the problem with arrays.
function acf_wp_kses_post($data) {
if (!is_array($data)) {
return wp_kses_post($data);
}
$return = array();
foreach ($data as $index => $value) {
$return[$index] = acf_wp_kses_post($value);
}
return $return;
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.