WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 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:

Description

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)

comment:1 alysko5 years ago

  • Milestone set to 2.8

comment:2 Denis-de-Bernardy5 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.