Cache get_post_status(), use strict post status comparison, and clean things up.