#33155 closed defect (bug) (invalid)
category_description() wraps return value in '<p>' tags
| Reported by: | Rob Walker | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Taxonomy | Version: | 4.2.3 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi Rob,
This is not a bug.
You can remove 'wpautop' function from 'term_description' filter.
remove_filter( 'term_description', 'wpautop' );