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-admin/includes/class-wp-press-this.php

    r33497 r33734  
    985985
    986986        if ( ! empty( $data['_embeds'] ) ) {
    987             foreach( $data['_embeds'] as $src ) {
     987            foreach ( $data['_embeds'] as $src ) {
    988988                $prot_relative_src = preg_replace( '/^https?:/', '', $src );
    989989
     
    10131013
    10141014        if ( ! empty( $data['_images'] ) ) {
    1015             foreach( $data['_images'] as $src ) {
     1015            foreach ( $data['_images'] as $src ) {
    10161016                if ( false !== strpos( $src, 'gravatar.com' ) ) {
    10171017                    $src = preg_replace( '%http://[\d]+\.gravatar\.com/%', 'https://secure.gravatar.com/', $src );
Note: See TracChangeset for help on using the changeset viewer.