Skip to content
Open
2 changes: 1 addition & 1 deletion core/Field/Date_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Date_Field extends Field {
/**
* {@inheritDoc}
*/
protected $allowed_attributes = array( 'placeholder', 'autocomplete' );
protected $allowed_attributes = array( 'disabled', 'placeholder', 'autocomplete' );

/**
* The storage format for use in PHP
Expand Down
2 changes: 1 addition & 1 deletion core/Field/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class Field implements Datastore_Holder_Interface {
*
* @var array<string>
*/
protected $allowed_attributes = array();
protected $allowed_attributes = array( 'disabled' );

/**
* The width of the field.
Expand Down
2 changes: 1 addition & 1 deletion core/Field/Text_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ class Text_Field extends Field {
/**
* {@inheritDoc}
*/
protected $allowed_attributes = array( 'list', 'max', 'maxLength', 'min', 'pattern', 'placeholder', 'readOnly', 'step', 'type', 'is', 'inputmode', 'autocomplete' );
protected $allowed_attributes = array( 'disabled', 'list', 'max', 'maxLength', 'min', 'pattern', 'placeholder', 'readOnly', 'step', 'type', 'is', 'inputmode', 'autocomplete' );
}
2 changes: 1 addition & 1 deletion core/Field/Textarea_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Textarea_Field extends Field {
/**
* {@inheritDoc}
*/
protected $allowed_attributes = array( 'maxLength', 'minLength', 'placeholder', 'readOnly', 'is', 'autocomplete' );
protected $allowed_attributes = array( 'disabled', 'maxLength', 'minLength', 'placeholder', 'readOnly', 'is', 'autocomplete' );

/**
* Number of rows (affects textarea height)
Expand Down