Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#41458 new enhancement

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

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

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
7 years ago

  • Component changed from General to Formatting
  • Type changed from defect (bug) to enhancement
  • Version changed from 4.8 to 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.