mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 11:44:33 +00:00
Avoid function calls on each iteration of a for loop.
See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31678 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -479,7 +479,7 @@ function do_action($tag, $arg = '') {
|
||||
$args[] =& $arg[0];
|
||||
else
|
||||
$args[] = $arg;
|
||||
for ( $a = 2; $a < func_num_args(); $a++ )
|
||||
for ( $a = 2, $num = func_num_args(); $a < $num; $a++ )
|
||||
$args[] = func_get_arg($a);
|
||||
|
||||
// Sort
|
||||
|
||||
Reference in New Issue
Block a user