There's an update for WordPress. Not a big deal really.
The problem though is there is a very easy fix. So easy that the Powers That Be gave very easy instructions. Totally idiot proof. Well, I'm an idiot.
1. Open the wp-includes/template-functions-category.php file in a text editor like Wordpad.
2. Go to around line 103 where it says get_the_category_by_ID.
3. Create a new line after that and paste in $cat_ID = (int) $cat_ID;
Easy, right? problem is, there are TWO get_the_category_by_ID. Which one to use??? I did a quick search of the support boards but all I could find was directions point to Matt's instructions.
So what I did was I downloaded the new version then went to look at the template-functions-category.php page and found out which one was used. But not knowing if there were any changes done my existing file, I simply pasted in the new code and uploaded the file. In other words:
- Downloaded new WP install.
- unzipped it and opened the appropriate file
- downloaded the same file from my site(s).
- used the 'new' file to find out where the change was (the first, if you do a search)
- found correct line and added in the appropriate code
- saved and uploaded my file
The new line should read:
get_the_category_by_ID($cat_ID) {
$cat_ID = (int) $cat_ID;
$category = &get_category($cat_ID);
There it's done.
UPDATE: To show the correct version at the bottom of the admin screens, open up wp-admin/version.php. Change the '1.5.1.1' to '1.5.1.2', save, upload, and yer done! The file is the same for each installation of WP. I just changed one then ftp'd it to all the WPs I run. Far too easy!
NOTE: Please note that the underscores were removed when I saved this page. Arrgh. So, put one between each word. get(underscore)the(underscore)category(underscore). You'll see it when you do it.
Comments: 0 so far | Got a Comment? | TrackBack URI
Keywords: none
last modified: 06/01/05 02:49




























