• Resolved Stephen Page

    (@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 6 years, 6 months ago by Stephen Page.
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.