Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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)

#1 @umesh.nevase
11 years ago

  • Resolution → invalid
  • Status new → closed

Hi Rob,

This is not a bug.

You can remove 'wpautop' function from 'term_description' filter.
remove_filter( 'term_description', 'wpautop' );

Last edited 11 years ago by umesh.nevase (previous) (diff)

#2 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.