WordPress.org

Make WordPress Core

Ticket #3975: plugin_php.patch

File plugin_php.patch, 560 bytes (added by harkos, 13 years ago)

Patch to apply_filters()

  • plugin.php

     
    2626                foreach( (array) current($wp_filter[$tag]) as $the_ )
    2727                        if ( !is_null($the_['function']) ){
    2828                                $args[1] = $string;
    29                                 $string = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args']));
     29                                $string = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args'] + 1));
    3030                        }
    3131
    3232        } while ( next($wp_filter[$tag]) );