Changeset 2788 for branches/plugin/bbp-includes/bbp-forum-template.php
- Timestamp:
- 01/09/2011 09:19:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-forum-template.php
r2787 r2788 145 145 * @param string $filter Optional Sanitation filter. See {@link sanitize_post()} 146 146 * @uses get_post() To get the forum 147 * @uses apply_filters() Calls 'bbp_get_forum' with the forum, output type and 148 * sanitation filter 147 149 * @return mixed Null if error or forum (in specified form) if success 148 150 */ … … 172 174 } 173 175 174 return apply_filters( 'bbp_get_forum', $forum );176 return apply_filters( 'bbp_get_forum', $forum, $output, $filter ); 175 177 } 176 178 … … 352 354 */ 353 355 function 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(); 355 358 356 359 if ( $forum = bbp_get_forum( $forum_id ) ) { 357 $ancestors = array();358 360 while ( 0 !== $forum->post_parent ) { 359 361 $ancestors[] = $forum->post_parent;
Note: See TracChangeset
for help on using the changeset viewer.