Changes between Version 1 and Version 3 of Ticket #38133
- Timestamp:
- 09/22/2016 08:26:38 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #38133
-
Property
Summary
changed from
Default widget title used if instance title is "0"
toCore widget fields fail to render value of "0" when empty() checks are used
-
Property
Summary
changed from
-
Ticket #38133 – Description
v1 v3 1 If you put a single zero 0 as the title in default widgets, it won't output any thing. You can try putting a 0 in any widget title or content. It works if you put 00 or anything else.1 If you put a single zero 0 the instance property for in many default widgets, it won't output any thing if an `empty()` check is used since `empty( '0' ) === true`. You can try putting a 0 in any widget title or content. It works if you put 00 or anything else. 2 2 3 3 The reason being our use of `empty( $variable )` and `! empty( $variable )` in the default widgets. `empty` returns FALSE if var exists and has a non-empty, non-zero value.