I love WordPress. It makes life so much easier. And they update it regularly for security patches and to fix bugs.
Unfortunately, from time to time they break a lot of shit, too.
I “upgraded” my blog to WordPress 3.4 a while back and started getting this handy little message whenever I tried to get to my dashboard:
Cannot redeclare class Custom_Image_Header in /wp-admin/custom-header.php on line 16
Nifty, huh? And because it broke my dashboard I couldn’t do anything about it.
Well, after much hacking, smacking, wailing and gnashing of teeth, etc., I got it working. Especially since one of the fixes in 3.4.1 was NOT a fix to unbreak what they broke.
And, as I tend to do in these circumstances, I like to share.
This file includes patched versions of the two .php files that break the “Back my Book” theme. Download it, and extract the two files as follows:
Extract “custom-header.php” to your /wp-admin/ directory.
Extract “theme.php” to your /wp-includes/ directory.
Then go to your blog and access your dashboard. Voila.
Hopefully the authors will eventually fix the theme themselves, but in the mean time kludge away.