use the correct post ID variable

Now that we no longer pass in `$post_id`, we need to use `$post->ID` instead. 
See 022e4742909e7b3fa5dbea11942265119c3005bc