Index: tests/phpunit/tests/media.php
===================================================================
--- tests/phpunit/tests/media.php	(revision 31477)
+++ tests/phpunit/tests/media.php	(working copy)
@@ -519,4 +519,33 @@
 		);
 		$this->assertEquals( $expected, $filetype );
 	}
+
+	/**
+	 * @ticket 22768
+	 */
+	public function test_import_iptc_caption_sets_post_excerpt() {
+		$iptc_path = DIR_TESTDATA . '/images/test-image-iptc.jpg';
+
+		// Make a copy of this file as it gets moved during the file upload
+		$tmp = wp_tempnam();
+
+		copy( $iptc_path, $tmp );
+
+		$_FILES['upload'] = array(
+			'tmp_name' => $tmp,
+			'name' => 'test-image-iptc.jpg',
+			'type' => 'image/jpeg',
+			'error' => 0,
+			'size' => filesize( $tmp )
+		);
+
+		$_POST['action'] = 'test_iptc_upload';
+
+		$id = media_handle_upload( 'upload', null, array(), array( 'action' => 'test_iptc_upload' ) );
+
+		$post = get_post( $id );
+
+		$this->assertEquals('This is a comment. / Это комментарий. / Βλέπετε ένα σχόλιο.', $post->post_excerpt);
+	}
+
 }
