Make WordPress Core

Changes between Version 1 and Version 3 of Ticket #38133


Ignore:
Timestamp:
09/22/2016 08:26:38 PM (8 years ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38133

    • Property Summary changed from Default widget title used if instance title is "0" to Core widget fields fail to render value of "0" when empty() checks are used
  • 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.
     1If 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.
    22
    33The 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.