Fix notices with functions.php 

Prevent undefined index on post (now made global)
Prevent deprecated notice on - get_the_author($post->ID) (removed as not required)