Make WordPress Core

Opened 9 years ago

Last modified 9 years ago

#41458 new enhancement

Class gets stripped out when inserting a link in author biography box

Reported by: neodjandre Owned by:
Priority: normal Milestone: Awaiting Review
Component: Formatting Version: 3.5
Severity: normal Keywords:
Cc: Focuses:

Description

Class gets stripped out when inserting a link in author biography box

For example <a href="#" class="test">My link</a>

becomes

<a href="#" >My link</a>

Change History (1)

#1 @afercia
9 years ago

  • Component General → Formatting
  • Type defect (bug) → enhancement
  • Version 4.8 → 3.5

Not exactly a bug, this is intentional. For some background, see [21790], #20210 and #17977.

Right now, the only allowed HTML attributes on a link in the user description are: href, title, and rel. However, I'm not sure why class shouldn't be allowed. On the other hand, targeting with CSS a link in the user bio might not be so hard. Changing from bug to enhancement as this could be something worth considering.

Note: See TracTickets for help on using tickets.