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

    r33542 r33734  
    372372        $fields = array( 'post_title', 'post_content', 'post_excerpt' );
    373373
    374         foreach( $fields as $field ) {
     374        foreach ( $fields as $field ) {
    375375            if ( isset( $post_data[ $field ] ) ) {
    376376                $post_data[ $field ] = $wpdb->strip_invalid_text_for_column( $wpdb->posts, $field, $post_data[ $field ] );
     
    11241124    }
    11251125
    1126     foreach( array_keys( $post_mime_types ) as $type ) {
     1126    foreach ( array_keys( $post_mime_types ) as $type ) {
    11271127        if ( isset( $q['attachment-filter'] ) && "post_mime_type:$type" == $q['attachment-filter'] ) {
    11281128            $q['post_mime_type'] = $type;
Note: See TracChangeset for help on using the changeset viewer.