Skip to:
Content

bbPress.org

Changeset 3621


Ignore:
Timestamp:
11/20/2011 12:29:04 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Allow forum/topic/reply row classes to be filtered. Fixes #1664.

Location:
branches/plugin/bbp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-forum-template.php

    r3587 r3621  
    16391639        $classes[] = bbp_is_forum_private( $forum_id )  ? 'status-private'  : '';
    16401640        $classes   = array_filter( $classes );
    1641         $retval    = get_post_class( $classes, $forum_id );
    1642         $retval    = 'class="' . join( ' ', $retval ) . '"';
    1643 
    1644         return apply_filters( 'bbp_get_forum_class', $retval, $forum_id );
     1641        $classes   = get_post_class( $classes, $forum_id );
     1642        $classes   = apply_filters( 'bbp_get_forum_class', $classes, $forum_id );
     1643        $retval    = 'class="' . join( ' ', $classes ) . '"';
     1644
     1645        return $retval;
    16451646    }
    16461647
  • branches/plugin/bbp-includes/bbp-reply-template.php

    r3572 r3621  
    17291729        $classes   = array();
    17301730        $classes[] = ( (int) $count % 2 ) ? 'even' : 'odd';
    1731         $retval    = get_post_class( $classes, $reply_id );
    1732         $retval    = 'class="' . join( ' ', $retval ) . '"';
    1733 
    1734         return apply_filters( 'bbp_get_reply_class', $retval, $reply_id );
     1731        $classes   = get_post_class( $classes, $reply_id );
     1732        $classes   = apply_filters( 'bbp_get_reply_class', $classes, $reply_id );
     1733        $retval    = 'class="' . join( ' ', $classes ) . '"';
     1734
     1735        return $retval;
    17351736    }
    17361737
  • branches/plugin/bbp-includes/bbp-topic-template.php

    r3584 r3621  
    19461946        $classes[] = bbp_is_topic_super_sticky( $topic_id  ) ? 'super-sticky' : '';
    19471947        $classes   = array_filter( $classes );
    1948         $retval    = get_post_class( $classes, $topic_id );
    1949         $retval    = 'class="' . join( ' ', $retval ) . '"';
    1950 
    1951         return apply_filters( 'bbp_get_topic_class', $retval, $topic_id );
     1948        $classes   = get_post_class( $classes, $topic_id );
     1949        $classes   = apply_filters( 'bbp_get_topic_class', $classes, $topic_id );
     1950        $retval    = 'class="' . join( ' ', $classes ) . '"';
     1951
     1952        return $retval;
    19521953    }
    19531954
Note: See TracChangeset for help on using the changeset viewer.