Resolve error notices when editing categories, etc. by only doing this on post.php