Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/13/2016 09:16:20 AM (8 years ago)
Author:
xknown
Message:

Branch 1.2: Fix PHP 7 compat issues w.r.t. the use of func_get_arg().

func_get_arg() returns the current (modified) value of the given argument. Let's make sure the code behaves the same.

See #3033

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bb-includes/functions.bb-forums.php

    r2739 r6167  
    6262        $args = array( 'child_of' => $args, 'hierarchical' => 1, 'depth' => 0 );
    6363    } elseif ( is_callable($args) ) {
     64        $_args = func_get_args();
    6465        $args = array( 'callback' => $args );
    6566        if ( 1 < func_num_args() )
    66             $args['callback_args'] = func_get_arg(1);
     67            $args['callback_args'] = $_args[1];
    6768    }
    6869
Note: See TracChangeset for help on using the changeset viewer.