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/class-wp-walker.php

    r32549 r33734  
    149149        if ( ($max_depth == 0 || $max_depth > $depth+1 ) && isset( $children_elements[$id]) ) {
    150150
    151             foreach( $children_elements[ $id ] as $child ){
     151            foreach ( $children_elements[ $id ] as $child ){
    152152
    153153                if ( !isset($newlevel) ) {
     
    251251            $empty_array = array();
    252252            foreach ( $children_elements as $orphans )
    253                 foreach( $orphans as $op )
     253                foreach ( $orphans as $op )
    254254                    $this->display_element( $op, $empty_array, 1, 0, $args, $output );
    255255         }
     
    375375            $empty_array = array();
    376376            foreach ( $children_elements as $orphans )
    377                 foreach( $orphans as $op )
     377                foreach ( $orphans as $op )
    378378                    $this->display_element( $op, $empty_array, 1, 0, $args, $output );
    379379        }
Note: See TracChangeset for help on using the changeset viewer.