Notice in admin on new posts
-
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 likeif ( empty($_POST['post_ID']) )
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.