وردپرس

New ACF versions html escaping in select2 breaks UI


Hi Matt –

Just wanted to note that the newest ACF versions that have deployed more sanitizing of code by default are making this display not look ideal.

It’s all technically still working… just not as beautiful as it used to be with the icons actually able to render inline within the dropdown.

Actually the select dropdown results are still looking good – just not the single selected value:

I recognize that this is an ACF and select2 issue and not actually anything to do directly with your plugin. (This same issues is actually affecting us in a few other spots as well where we have hooked into the result values of select fields.) I did reach out to the ACF support team already and they said the following:

The issue is actually by design, that HTML is escaped for security reasons. This was put in during our last update.
 
There will be an option to get this working in an future update to ACF.
We do not have an ETA for that.
 
Hope this clears things up.

Not sure if there’s anything to be done about it right away, but I did want to bring it to your attention on the off chance you were not aware already. Plus I also thought with 100k+ active users for this plugin, maybe the ACF team would put a little more urgency behind this fix if they heard from you about it as well.

Thanks for the awesome plugin!

پایان/ مرجع وب و فناوری

مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد

منبع: انجمن وردپرس

دکمه بازگشت به بالا