Skip to content

Code doesn't check to see if returning a valid post.  #2

Description

@aussieveen

The code doesn't check what the get_post function is returning. It just includes it regardless of whether it is a WP_Post object or null.
https://github.com/cftp/post-collections/blob/master/template.php#L25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions