Skip to content
Snippets Groups Projects

release: 3.0.0

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

Files

@@ -2,8 +2,6 @@
@@ -2,8 +2,6 @@
namespace WPDesk\Forms\Field\Traits;
namespace WPDesk\Forms\Field\Traits;
use WPDesk\Forms\Field;
/**
/**
* Implementation of HTML attributes like id, name, action etc.
* Implementation of HTML attributes like id, name, action etc.
*
*
@@ -54,6 +52,6 @@ trait HtmlAttributes {
@@ -54,6 +52,6 @@ trait HtmlAttributes {
}
}
public function get_attribute( string $name, string $default = null ): string {
public function get_attribute( string $name, string $default = null ): string {
return $this->attributes[ $name ] ?? $default;
return $this->attributes[ $name ] ?? $default ?? '';
}
}
}
}
Loading