I just upgraded my blog. I’m getting really good at this!!
But the upgrade f*cked up my site.
Apparently, there is an error in the new code, so that when you upgrade, you may get an error –
Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in blah/blah/blah/wp-includes/category-template.php on line 176
Now I did some research and apparently there is a line in a file called wp-includes/category-template.php.
That line says
What it should say is
if(array_key_exists(‘$category’, $categories)) [with the little quotes].
That fixed it!!!
And now I can do all sorts of fancy things like change the colour of the text.
Or play cards – ◊ ♣ ♥ ♦.
I wonder if it will write my posts for me?