Support » Plugin: Simple Preview » Notice in admin on new posts

  • Resolved camwynsp

    (@camwynsp)


    Just a heads-up.

    on line 106 of simple-preview.php, you grab $_POST['post_ID'] – but on a new post it’s not defined. Even though that function triggers on save, the initial autodraft appears to trigger it and it’s still throwing the notice, so I’d advise adding a check for it first and bailing out if it’s not present. Something like if ( empty($_POST['post_ID']) )

    • This topic was modified 9 months, 1 week ago by  camwynsp.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Notice in admin on new posts’ is closed to new replies.