Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#10007 closed defect (bug) (wontfix)

category_description() add <p> element

Reported by: alysko Owned by: dd32
Milestone: Priority: normal
Severity: trivial Version: 2.8
Component: HTTP API Keywords: category_description, css, p
Focuses: Cc:


echo category_description(); return <p>description</p> which is not the normal (codex) behavior and may cause css problem (<p id="descr">category_description()</p>)

Change History (2)

#1 @alysko
12 years ago

  • Milestone set to 2.8

#2 @Denis-de-Bernardy
12 years ago

  • Milestone 2.8 deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Formatting is as such:

$filters = array('term_description');
foreach ( $filters as $filter ) {
	add_filter($filter, 'wptexturize');
	add_filter($filter, 'convert_chars');
	add_filter($filter, 'wpautop');

Please update codex and/or wrap in a div.

Note: See TracTickets for help on using tickets.