Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/09/2011 09:19:26 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Better handling of title attributes. Props GautamGupta via Google Code-in

File:
1 edited

Legend:

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

    r2787 r2788  
    145145 * @param string $filter Optional Sanitation filter. See {@link sanitize_post()}
    146146 * @uses get_post() To get the forum
     147 * @uses apply_filters() Calls 'bbp_get_forum' with the forum, output type and
     148 *                        sanitation filter
    147149 * @return mixed Null if error or forum (in specified form) if success
    148150 */
     
    172174    }
    173175
    174     return apply_filters( 'bbp_get_forum', $forum );
     176    return apply_filters( 'bbp_get_forum', $forum, $output, $filter );
    175177}
    176178
     
    352354 */
    353355function bbp_get_forum_ancestors( $forum_id = 0 ) {
    354     $forum_id = bbp_get_forum_id( $forum_id );
     356    $forum_id  = bbp_get_forum_id( $forum_id );
     357    $ancestors = array();
    355358
    356359    if ( $forum = bbp_get_forum( $forum_id ) ) {
    357         $ancestors = array();
    358360        while ( 0 !== $forum->post_parent ) {
    359361            $ancestors[] = $forum->post_parent;
Note: See TracChangeset for help on using the changeset viewer.