Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/09/2016 02:08:07 PM (10 years ago)
Author:
xknown
Message:

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.1/bb-includes/functions.bb-forums.php

    r2739 r6156  
    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.