Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/24/2012 07:07:31 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Extract:

  • Remove unused BBP_Forum_Walker class, and bbp_walk_forum function, that use extract().
  • See #2056.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/forums/functions.php

    r4489 r4501  
    664664}
    665665
    666 /** Walk **********************************************************************/
    667 
    668 /**
    669  * Walk the forum tree
    670  *
    671  * @param object $forums Forums
    672  * @param int $depth Depth
    673  * @param int $current Current forum
    674  * @param array $r Parsed arguments, supported by the walker. If you want to
    675  *                  use your own walker, pass the 'walker' arg with the walker.
    676  *                  The walker defaults to {@link BBP_Walker_Forum}
    677  * @return object Walked forum tree
    678  */
    679 function bbp_walk_forum( $forums, $depth, $current, $r ) {
    680     $walker = empty( $r['walker'] ) ? new BBP_Walker_Forum : $r['walker'];
    681     $args   = array( $forums, $depth, $r, $current );
    682     return call_user_func_array( array( &$walker, 'walk' ), $args );
    683 }
    684 
    685666/** Forum Actions *************************************************************/
    686667
Note: See TracChangeset for help on using the changeset viewer.