Page MenuHomePhorge

No OneTemporary

Size
525 B
Referenced Files
None
Subscribers
None
diff --git a/includes/htmlform/fields/HTMLFloatField.php b/includes/htmlform/fields/HTMLFloatField.php
index e036fed00ea..6a274325c2e 100644
--- a/includes/htmlform/fields/HTMLFloatField.php
+++ b/includes/htmlform/fields/HTMLFloatField.php
@@ -20,6 +20,9 @@ class HTMLFloatField extends HTMLTextField {
}
$value = trim( $value ?? '' );
+ if ( $value === '' ) {
+ return true;
+ }
# https://www.w3.org/TR/html5/infrastructure.html#floating-point-numbers
# with the addition that a leading '+' sign is ok.

File Metadata

Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:33 AM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227855
Default Alt Text
(525 B)

Event Timeline