Index: src/wp-includes/class-wp-comment-query.php
===================================================================
--- src/wp-includes/class-wp-comment-query.php	(revision 43556)
+++ src/wp-includes/class-wp-comment-query.php	(working copy)
@@ -635,6 +635,7 @@
 		$number = absint( $this->query_vars['number'] );
 		$offset = absint( $this->query_vars['offset'] );
 		$paged  = absint( $this->query_vars['paged'] );
+		$limits = '';

 		if ( ! empty( $number ) ) {
 			if ( $offset ) {
@@ -825,6 +826,8 @@
 			$join .= "JOIN $wpdb->posts ON $wpdb->posts.ID = $wpdb->comments.comment_post_ID";
 		}

+		$groupby = '';
+
 		if ( ! empty( $this->meta_query_clauses ) ) {
 			$join .= $this->meta_query_clauses['join'];

Index: src/wp-includes/class-wp-xmlrpc-server.php
===================================================================
--- src/wp-includes/class-wp-xmlrpc-server.php	(revision 43556)
+++ src/wp-includes/class-wp-xmlrpc-server.php	(working copy)
@@ -3710,6 +3710,9 @@
 		}

 		// Do some timestamp voodoo
+		$comment_date = '';
+		$comment_date_gmt = '';
+
 		if ( ! empty( $content_struct['date_created_gmt'] ) ) {
 			// We know this is supposed to be GMT, so we're going to slap that Z on there by force
 			$dateCreated      = rtrim( $content_struct['date_created_gmt']->getIso(), 'Z' ) . 'Z';
@@ -3717,6 +3720,8 @@
 			$comment_date_gmt = iso8601_to_datetime( $dateCreated, 'GMT' );
 		}

+		$comment_content = '';
+
 		if ( isset( $content_struct['content'] ) ) {
 			$comment_content = $content_struct['content'];
 		}
@@ -5258,11 +5263,14 @@
 		}

 		// Only use a password if one was given.
+		$post_password = '';
 		if ( isset( $content_struct['wp_password'] ) ) {
 			$post_password = $content_struct['wp_password'];
 		}

 		// Only set a post parent if one was provided.
+		$post_parent = '';
+
 		if ( isset( $content_struct['wp_page_parent_id'] ) ) {
 			$post_parent = $content_struct['wp_page_parent_id'];
 		}
@@ -5657,6 +5665,8 @@
 			}
 		}

+		$comment_status = '';
+
 		if ( isset( $content_struct['mt_allow_comments'] ) ) {
 			if ( ! is_numeric( $content_struct['mt_allow_comments'] ) ) {
 				switch ( $content_struct['mt_allow_comments'] ) {
Index: src/wp-includes/comment.php
===================================================================
--- src/wp-includes/comment.php	(revision 43556)
+++ src/wp-includes/comment.php	(working copy)
@@ -3091,6 +3091,7 @@

 	$comment_post_ID = $comment_parent = 0;
 	$comment_author  = $comment_author_email = $comment_author_url = $comment_content = null;
+	$user_ID = 0;

 	if ( isset( $comment_data['comment_post_ID'] ) ) {
 		$comment_post_ID = (int) $comment_data['comment_post_ID'];
Index: src/wp-includes/post.php
===================================================================
--- src/wp-includes/post.php	(revision 43556)
+++ src/wp-includes/post.php	(working copy)
@@ -3546,6 +3546,13 @@
 		$post_parent = 0;
 	}

+	$new_postarr = array_merge(
+		array(
+			'ID' => $post_ID,
+		),
+		compact( array_diff( array_keys( $defaults ), array( 'context', 'filter' ) ) )
+	);
+
 	/**
 	 * Filters the post parent -- used to check for and prevent hierarchy loops.
 	 *
@@ -3556,7 +3563,7 @@
 	 * @param array $new_postarr Array of parsed post data.
 	 * @param array $postarr     Array of sanitized, but otherwise unmodified post data.
 	 */
-	$post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_ID, compact( array_keys( $postarr ) ), $postarr );
+	$post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_ID, $new_postarr, $postarr );

 	/*
 	 * If the post is being untrashed and it has a desired slug stored in post meta,
Index: tests/phpunit/tests/dependencies/scripts.php
===================================================================
--- tests/phpunit/tests/dependencies/scripts.php	(revision 43556)
+++ tests/phpunit/tests/dependencies/scripts.php	(working copy)
@@ -825,6 +825,8 @@
 	 * @covers ::wp_enqueue_code_editor()
 	 */
 	public function test_wp_enqueue_code_editor_when_generated_array_by_compact_will_be_passed() {
+		$file = '';
+
 		$wp_enqueue_code_editor = wp_enqueue_code_editor( compact( 'file' ) );
 		$this->assertNonEmptyMultidimensionalArray( $wp_enqueue_code_editor );
