Skip to content
Snippets Groups Projects

fix(attributes): fixed bug with the double name & type attribute

Merged Krzysztof Dyszczyk requested to merge devel into master
2 files
+ 5
1
Compare changes
  • Side-by-side
  • Inline

Files

@@ -19,7 +19,7 @@ trait HtmlAttributes {
*
* @return string[]
*/
public function get_attributes( $except = [] ) {
public function get_attributes( $except = [ 'name', 'type' ] ) {
return array_filter( $this->attributes, function ( $value, $key ) use ( $except ) {
return ! in_array( $key, $except, true );
}, ARRAY_FILTER_USE_BOTH );
Loading