Support

Account

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

Helping

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="https://web.com/announcement.img">
    arrow : <img src="https://web.com/arrow.img">
    

    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.