Make WordPress Core


Ignore:
Timestamp:
02/26/2015 05:37:34 AM (12 years ago)
Author:
wonderboymusic
Message:

wp_insert_comment() should be checking and setting $compacted, not the non-existent $post_data.

See [31263], #21212.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r31467 r31553  
    20542054                foreach( $fields as $field ) {
    20552055                        if ( isset( $compacted[ $field ] ) ) {
    2056                                 $post_data[ $field ] = $wpdb->strip_invalid_text_for_column( $wpdb->comments, $field, $compacted[ $field ] );
     2056                                $compacted[ $field ] = $wpdb->strip_invalid_text_for_column( $wpdb->comments, $field, $compacted[ $field ] );
    20572057                        }
    20582058                }
Note: See TracChangeset for help on using the changeset viewer.