Ticket #14671: 14671.diff
File 14671.diff, 1.5 KB (added by , 15 years ago) |
---|
-
wp-includes/plugin.php
163 163 foreach( (array) current($wp_filter[$tag]) as $the_ ) 164 164 if ( !is_null($the_['function']) ){ 165 165 $args[1] = $value; 166 $value = call_user_func_array($the_['function'], array_slice($args, 1 , (int) $the_['accepted_args']));166 $value = call_user_func_array($the_['function'], array_slice($args, 1 ) ); 167 167 } 168 168 169 169 } while ( next($wp_filter[$tag]) !== false ); … … 217 217 do { 218 218 foreach( (array) current($wp_filter[$tag]) as $the_ ) 219 219 if ( !is_null($the_['function']) ) 220 $args[0] = call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));220 $args[0] = call_user_func_array($the_['function'], $args); 221 221 222 222 } while ( next($wp_filter[$tag]) !== false ); 223 223 … … 392 392 do { 393 393 foreach ( (array) current($wp_filter[$tag]) as $the_ ) 394 394 if ( !is_null($the_['function']) ) 395 call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));395 call_user_func_array($the_['function'], $args ); 396 396 397 397 } while ( next($wp_filter[$tag]) !== false ); 398 398 … … 470 470 do { 471 471 foreach( (array) current($wp_filter[$tag]) as $the_ ) 472 472 if ( !is_null($the_['function']) ) 473 call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));473 call_user_func_array($the_['function'], $args); 474 474 475 475 } while ( next($wp_filter[$tag]) !== false ); 476 476