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;