Fixed 2.2 regression: parse_less_color() returns #000000 for empty string

Kirby

Well-known member
Licensed customer
Affected version
2.3.10
In XenForo 2.2 template code
Code:
{{ parse_less_color('') }}
returned null (eg. nothing was output)

In XenForo 2.3 this returns #000000

An empty string is obviously an invalid color and should not return #000000
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.11).

Change log:
Make parse_less_color() return null for an empty string instead of #000000, restoring 2.2 behaviour so callers can omit the meta tag when no color is configured.
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom