Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Just looking for some history on the output of category_description()

I have categories whose "description" fields are formatted with rich text and I'm trying to understand the differences in WP version with respect to the output of this method so that I can do a version check if necessary to implement desired output.

For example, before 3.0.1, it appears that category_description() returned the output stripped of any html markup. However, with the current 3.3.1 release, the output appears to be raw.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Actually HTML is stripped on input, using wp_filter_kses function hooked into pre_term_description filter. So if this hook isn't removed HTML would be stripped.

share|improve this answer
    
OK, I'm already calling that filter, so no problems. Thanks for the answer! –  N2Mystic Feb 9 '12 at 15:54
    
You're very welcome. –  Mamaduka Feb 9 '12 at 16:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.