Couple of WordPress 2.7 Annoyances
As much as I love the new version of WordPress, I’ve come across an issue which is a bit of a pain (although I’ve not had the chance to scour the WP forum or Bugs). I mentioned it a week or so ago, whereby the template tag comments_number() and also comments_popup_link() displays the count of comments regardless of their moderation status, i.e. if someone’s left a comment but it hasn’t been moderated, on the front end you’ll still get their comment included in the count (which is obviously confusing if there are no other comments on the post!).
This may also be my own problem which is why I’ve not seen anyone else mention it. I’ve got an issue (which I don’t have on any other site) on my comments admin page, and the comment counts are wrong on that too. So it’s something to look into further when I have the time.
The other gripe I’ve got is that when you use the automatic upgrade in the admin, it overwrites all the files and also the classic and default theme directories. My first thought when I realised this was that surely there are people out there who use one of these themes and just make a few alterations themselves? My second thought, well more a concern, was that a lot of sites we have to upgrade has their theme in the default directory. You may wonder why, and there is a good reason! If you go to a WP site, the first thing WP has to do is check which theme is in use and then check if it’s there by looking for the stylesheet. If the stylesheet can’t be found WP automatically reverts back to the default theme and updates the database to make the default theme the selected theme.
It’s an understandable method however I’ve found that if I happen to be updating my stylesheet for this site, for a brief couple of seconds my stylesheet doesn’t exist as FTP will delete the file and then upload the new version. At that point, if anyone visits the site, the theme is switched to default. It sounds like a rare thing but I’ve had it happen a few times on this site, so once I worked this out I started to use the default directory instead.
Okay, so I realise that I could leave sites as they are and just not use the built in upgrade function but with around 20+ sites to upgrade (not all mine!) when a new version is out, the function is very much welcomed, however in my mind, overwriting the theme directories is a flaw. Either, the option should be given to copy the theme directories over or not, or simply just not part of the upgrade.
However, despite my problem and annoyance, those are the only issues that I can really find wrong with the new version. I just now need to update all the sites to not use the default directory!