Make WordPress Core

Opened 16 years ago

Closed 15 years ago

#7746 closed enhancement (invalid)

add wpautop filter to the_author_description() (and its own filter)

Reported by: jeremyclarke's profile jeremyclarke Owned by:
Milestone: Priority: low
Severity: normal Version: 2.6.1
Component: General Keywords:
Focuses: Cc:


There is currently no filter on the_author_description(), which prints out author bios within the loop. On the backend you can add html to it, but <br>'s and <p>'s are removed. Line breaks are kept though, just like in the post content, but then on display there is no use of wpautop to make the line breaks actually display (they're just html whitespace).

So we should either add wpautop to the output or stop stripping BR from the content.

Further, it seems like a good idea to add it's own filter in case people want to do special things with author bios.

For bonus points, could we add an optional argument to both functions (get_author_description() and the_author_description()) so that people could call them with filters active from outside the loop, specifically in author.php pages where it makes a lot more sense to show the user bio than inside the loop.

I can write a patch if someone indicates it will be welcome.

Change History (4)

#1 @jacobsantos
16 years ago

  • Type changed from defect to enhancement

#2 @jacobsantos
16 years ago

  • Milestone changed from 2.7 to 2.8

15 years ago

  • Milestone changed from 2.8 to Future Release

#4 @Denis-de-Bernardy
15 years ago

  • Milestone Future Release deleted
  • Resolution set to invalid
  • Status changed from new to closed

this can be done with a plugin.

Note: See TracTickets for help on using tickets.