• Moderator Marius L. J.

    (@clorith)


    When removing a contact form only the post it self is gone, the post meta still remains, and any shortcode referencing the old form will still output a valid contact sheet.

    Ideally the post status should be checked before outputting a form, if you’ve deleted a form nothing should be shown, or a warning of some kind, as you are unable to administrate a deleted form it seems silly to keep them “active” on the front end after removal.

    Alternatively when a shortcode is triggered if it’s a “deleted” form, re-enable it in the backend but append a note to the form name in the listings so the site owner can identify it as being a deleted yet still in use form?

    https://wordpress.org/plugins/contact-form-7/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    If you use Contact Form 7, it deletes contact form data completely with its post metas. Not just changing its post status.

    Moderator Marius L. J.

    (@clorith)

    Hi,

    I’m on the latest stable version and the form was not in the Contact Form CPT list at all, the only way I could track it down was a manual DB search where it only existed in the post_meta table.

    I wasn’t even aware of it’s existence because it was on a page rarely used so I hadn’t edited it to replace it with the new (and existing) form. So it appears the post meta removal may be buggy?

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Do you use Contact Form 7 plugin? If so, try deactivating all other plugins and switching to the default theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug: Deleted forms still accessible’ is closed to new replies.