Make WordPress Core


Ignore:
Timestamp:
08/25/2015 08:27:56 PM (9 years ago)
Author:
wonderboymusic
Message:

foreach is a statement, not a function.

See #33491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/plugin.php

    r32964 r33734  
    208208
    209209    do {
    210         foreach( (array) current($wp_filter[$tag]) as $the_ )
     210        foreach ( (array) current($wp_filter[$tag]) as $the_ )
    211211            if ( !is_null($the_['function']) ){
    212212                $args[1] = $value;
     
    265265
    266266    do {
    267         foreach( (array) current($wp_filter[$tag]) as $the_ )
     267        foreach ( (array) current($wp_filter[$tag]) as $the_ )
    268268            if ( !is_null($the_['function']) )
    269269                $args[0] = call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));
     
    575575
    576576    do {
    577         foreach( (array) current($wp_filter[$tag]) as $the_ )
     577        foreach ( (array) current($wp_filter[$tag]) as $the_ )
    578578            if ( !is_null($the_['function']) )
    579579                call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));
     
    846846    reset( $wp_filter['all'] );
    847847    do {
    848         foreach( (array) current($wp_filter['all']) as $the_ )
     848        foreach ( (array) current($wp_filter['all']) as $the_ )
    849849            if ( !is_null($the_['function']) )
    850850                call_user_func_array($the_['function'], $args);
Note: See TracChangeset for help on using the changeset viewer.