Index: tests/phpunit/tests/post/slashes.php
===================================================================
--- tests/phpunit/tests/post/slashes.php	(revision 33729)
+++ tests/phpunit/tests/post/slashes.php	(working copy)
@@ -129,4 +129,27 @@
 		$this->assertEquals( wp_unslash( $this->slash_6 ), $post->post_excerpt );
 	}
 
+	/**
+	 * @ticket 27550
+	 */
+	function test_wp_trash_untrash() {
+		$post = array(
+			'post_title' => $this->slash_1,
+			'post_content' => $this->slash_3,
+			'post_excerpt' => $this->slash_5,
+		);
+		$id = wp_insert_post(wp_slash($post));
+
+		wp_trash_post($id);
+		$post = get_post($id);
+		$this->assertEquals($this->slash_1, $post->post_title);
+		$this->assertEquals($this->slash_3, $post->post_content);
+		$this->assertEquals($this->slash_5, $post->post_excerpt);
+
+		wp_untrash_post($id);
+		$post = get_post($id);
+		$this->assertEquals($this->slash_1, $post->post_title);
+		$this->assertEquals($this->slash_3, $post->post_content);
+		$this->assertEquals($this->slash_5, $post->post_excerpt);
+	}
 }
