If there was two blog entries with the same permalink but different dates, `find_post` always returned the latest one and ignored year/month. Fixed by checking that `$year` is actually set to NULL, which is the case if you use the post/title permalink type.