Skip to:
Content

bbPress.org

Opened 9 years ago

Closed 9 years ago

#2242 closed enhancement (fixed)

bbp_forum_class() add class parameter

Reported by: alexvorn2 Owned by:
Milestone: 2.3 Priority: low
Severity: minor Version: 2.2.3
Component: Appearance - Theme Compatibility Keywords:
Cc:

Description

bbp_forum_class function use only one parameter, that is forum_id, I think that first parameter should be the class ( string/array ) and the second - ID.

Like post_class():

function post_class( $class = '', $post_id = null ) {
	// Separates classes with a single space, collates classes for post DIV
	echo 'class="' . join( ' ', get_post_class( $class, $post_id ) ) . '"';
}

Change History (2)

#1 @johnjamesjacoby
9 years ago

  • Component changed from General to Theme Compatability
  • Milestone changed from Awaiting Review to 2.3
  • Priority changed from normal to low
  • Severity changed from normal to minor
  • Type changed from defect to enhancement
  • Version changed from 2.1 to 2.2.3

Easy enough to add.

#2 @johnjamesjacoby
9 years ago

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

(In [4790]) Allow additional post-type CSS classes to be passed as a second parameter. Fixes #2242.

Note: See TracTickets for help on using tickets.