WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/25/2015 08:27:56 PM (6 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/comment.php

    r33730 r33734  
    24032403        $fields = array( 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content' );
    24042404
    2405         foreach( $fields as $field ) {
     2405        foreach ( $fields as $field ) {
    24062406            if ( isset( $commentdata[ $field ] ) ) {
    24072407                $commentdata[ $field ] = $wpdb->strip_invalid_text_for_column( $wpdb->comments, $field, $commentdata[ $field ] );
Note: See TracChangeset for help on using the changeset viewer.