LLMS_Form_Field::get_deprecated_html_attributes()
Ensure deprecated settings still function.
Description Description
The legacy "min_length", "max_length", and "style" settings should now be passed via the "attributes" setting.
Return Return
(array)
Source Source
File: includes/forms/class-llms-form-field.php
protected function get_deprecated_html_attributes() { $attrs = array(); foreach ( array( 'min_length', 'max_length', 'style' ) as $attr ) { if ( isset( $this->settings[ $attr ] ) ) { $attrs[ str_replace( '_', '', $attr ) ] = esc_attr( $this->settings[ $attr ] ); } } return $attrs; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |