From 94bd0f93b8d830b98d95493820ea3c31d09c3118 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 26 Feb 2015 05:38:24 +0000 Subject: [PATCH] `wp_insert_comment()` should be checking and setting `$compacted`, not the non-existent `$post_data`. See [31263], #21212. Built from https://develop.svn.wordpress.org/trunk@31553 git-svn-id: http://core.svn.wordpress.org/trunk@31534 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index f0c71af2bb..b1828c3fde 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -2053,7 +2053,7 @@ function wp_insert_comment( $commentdata ) { foreach( $fields as $field ) { if ( isset( $compacted[ $field ] ) ) { - $post_data[ $field ] = $wpdb->strip_invalid_text_for_column( $wpdb->comments, $field, $compacted[ $field ] ); + $compacted[ $field ] = $wpdb->strip_invalid_text_for_column( $wpdb->comments, $field, $compacted[ $field ] ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 0152c6fcaa..c48e865d3e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31552'; +$wp_version = '4.2-alpha-31553'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.