Skip to content

plugins leads to error in another plugin #77

Description

@mmjaeger

I one of my other plugins I have the following piece of code:
if (isset($post) && 'attachment' == $post->post_type && - this leads to an error like Notice: Undefined property: Eventbrite_Event::$post_type in /Users/Marco/Sites/sites/thinglogix.com/wp-content/plugins/pdfembedder-premium-secure/core/commercial_pdf_embedder.php;

adding $post->post_type = 'post' to the single template fixes the issue?!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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