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-oembed.php

    r33720 r33734  
    406406        $provider = apply_filters( 'oembed_fetch_url', $provider, $url, $args );
    407407
    408         foreach( array( 'json', 'xml' ) as $format ) {
     408        foreach ( array( 'json', 'xml' ) as $format ) {
    409409            $result = $this->_fetch_with_format( $provider, $format );
    410410            if ( is_wp_error( $result ) && 'not-implemented' == $result->get_error_code() )
Note: See TracChangeset for help on using the changeset viewer.