Home Forums Backend Issues (wp-admin) wp_kses breaks select images


wp_kses breaks select images

  • ACF 5.10.0 added wp_kses which is stopping images from loading inside select fields. I used to be able to use the “Stylized UI” Select field with values like this:

    announcement : <img src="">
    arrow : <img src="">

    But it echos out &lt instead of < and &gt instead of > around the image tag, which keeps it from rendering.

    I’ve tried updating the wp_kses_allowed_html filter but nothing seems to make a difference.

  • Hey, thanks for the report!

    We’re intended to release a patch next week that will allow safe HTML like this inside a select2 field.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.