Skip to:
Content

Opened 5 years ago

Closed 4 years ago

#2657 closed enhancement (fixed)

Add class to pre in bbp_kses_allowed_tags()

Reported by: netweb Owned by: johnjamesjacoby
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: API - Formatting Keywords: commit
Cc:

Description

The Crayon Syntax Highlighter plugin styles their 'code snippet' using e.g.:

<pre class="lang:arduino decode:true crayon-selected">void loop()
{
digitalWrite
}

I don't see any reason why we can't add class to pre in bbp_kses_allowed_tags()

via http://bbpress.org/forums/topic/crayon-syntax-highlighter-not-working-tags-issue/

Attachments (1)

2657.diff (421 bytes) - added by netweb 5 years ago.

Download all attachments as: .zip

Change History (3)

@netweb
5 years ago

#1 @netweb
4 years ago

  • Keywords commit added

#2 @johnjamesjacoby
4 years ago

  • Owner set to johnjamesjacoby
  • Resolution set to fixed
  • Status changed from new to closed

In 5493:

Allow class attribute for pre tags in bbp_kses_allowed_tags(). Props netweb. Fixes #2657.

Note: See TracTickets for help on using tickets.