Fix for Popularity Contest Page Views on Wordpress >2.0.0

I installed the popularity contest plugin some time ago to count the popularity of posts on this blog. Unfortunately, up till now it hadn’t been counting page views, which significantly skewed the statistics. I recently discovered, however, that there was a bug in the WP-ShortStat plugin which caused it not to register hits (due to a regression in Wordpress). I applied a similar fix to popularity-contest.php version 1.1 and it now works. It looks like a different fix has already been applied to the version in Trac to fix the problem.