Fix PHP notice on new post/page