single_cat_title() functionality changed in 3.1
|Reported by:||Viper007Bond||Owned by:|
r15598 changed how single_cat_title() works -- it now always returns a value. If the function is used properly, this is not an issue. However many, many themes stuck an echo in front of the function. Yes, this is incorrect, but in the past this echo'ed null and so it was no problem. However now that the function returns no matter what, lots of themes are getting double output.
So even though if used properly nothing is wrong, I suggest we not return any value if the display parameter is set. This will better match previous functionality and lessen the impact of any improperly written themes.