Skip to content

Editor plugin doesn't render when creating a new post of a custom post type #529

@jbeales

Description

@jbeales

When I go to create a new "Book" post on my site, my book custom post type, I get a red banner at the top of the editor that says "The "webmention-editor-plugin" plugin has encountered an error and cannot be rendered."

Digging into the Javascript console I see the message "TypeError: can't access property "webmentions_disabled", r is undefined" which, since it's Javascript must come from this line of the Editor plugin. I'm guessing that the meta variable isn't set on CPTs, or at least on my CPT.

I'm too out of the loop at the moment on developing for the new editor to send over a quick PR, hopefully someone else can pick up where my expertise ends and get this fixed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions