#33155 closed defect (bug) (invalid)
category_description() wraps return value in '<p>' tags
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.2.3 |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
Description
Calls to category_description() should return only the text or provide options for user supplied wrap tag.
It appears that the '<p>' tag is added in apply_filter( 'term_description' ) which is called from taxonomy.php: sanitize_term_field().
Change History (2)
Note: See
TracTickets for help on using
tickets.
Hi Rob,
This is not a bug.
You can remove 'wpautop' function from 'term_description' filter.
remove_filter( 'term_description', 'wpautop' );