Skip to:
Content

bbPress.org

Opened 10 years ago

Closed 10 years ago

#2657 closed enhancement (fixed)

Add class to pre in bbp_kses_allowed_tags()

Reported by: netweb's profile netweb Owned by: johnjamesjacoby's profile 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 10 years ago.

Download all attachments as: .zip

Change History (3)

@netweb
10 years ago

#1 @netweb
10 years ago

  • Keywords commit added

#2 @johnjamesjacoby
10 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.