Skip to content

partials/widget-content.php will never display the byline date #1855

@benlk

Description

@benlk

https://github.com/INN/largo/blob/13e1777b1f39484698d5744a8f0f432be1ee098c/partials/widget-content.php#L45

if the variable is set to false, then because ! empty( false ) === false, the fallback option of true is used.

This can be fixed by switching to isset( ... ) ? ... : ... ;, and making sure that where we use partials/widget-content.php, like in the Largo Recent Posts widget, we do so passing false explicitly.

This is the bug in INN/umbrella-voiceofoc#36.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions