Ticket #9968: 9968.diff
| File 9968.diff, 1.1 KB (added by , 17 years ago) |
|---|
-
wp-includes/plugin.php
159 159 if ( empty($args) ) 160 160 $args = func_get_args(); 161 161 162 do{163 foreach( (array) current($wp_filter[$tag])as $the_ )162 foreach ( $wp_filter[$tag] as $filters ) { 163 foreach( (array) $filters as $the_ ) 164 164 if ( !is_null($the_['function']) ){ 165 165 $args[1] = $value; 166 166 $value = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args'])); 167 167 } 168 168 169 } while ( next($wp_filter[$tag]) !== false );169 } 170 170 171 171 array_pop( $wp_current_filter ); 172 172 … … 333 333 334 334 reset( $wp_filter[ $tag ] ); 335 335 336 do{337 foreach ( (array) current($wp_filter[$tag])as $the_ )336 foreach ( $wp_filter[$tag] as $filters ) { 337 foreach ( (array) $filters as $the_ ) 338 338 if ( !is_null($the_['function']) ) 339 339 call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args'])); 340 340 341 } while ( next($wp_filter[$tag]) !== false );341 } 342 342 343 343 array_pop($wp_current_filter); 344 344 }