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/functions.php

    r33226 r33734  
    133133            $timezone_object = timezone_open( $timezone_string );
    134134            $date_object = date_create( null, $timezone_object );
    135             foreach( $timezone_formats as $timezone_format ) {
     135            foreach ( $timezone_formats as $timezone_format ) {
    136136                if ( false !== strpos( $dateformatstring, $timezone_format ) ) {
    137137                    $formatted = date_format( $date_object, $timezone_format );
     
    10811081    }
    10821082
    1083     foreach( $headers as $name => $field_value )
     1083    foreach ( $headers as $name => $field_value )
    10841084        @header("{$name}: {$field_value}");
    10851085}
Note: See TracChangeset for help on using the changeset viewer.