qtranslate / qtranslate-xt

qTranslate-XT (eXTended) - reviving qTranslate-X multilingual plugin for WordPress. A new community-driven plugin soon. Built-in modules for WooCommerce, ACF, slugs and others.
GNU General Public License v2.0
550 stars 103 forks source link

Add support of `form` attribute for detached `input` #1253

Closed herrvigg closed 1 year ago

herrvigg commented 1 year ago

Input elements are usually created below a form to be submitted. There's another alternative with the form attribute that allows them to be placed anywhere in the document.

This field was ignored by qTranslate, assuming all inputs below a form. This problem was first seen with ACF6 field group title (#1252). This patch considers this attribute before creating new elements. It is read in priority, before looking for the closest form.