Index: trunk/tests/post.php
===================================================================
--- trunk/tests/post.php	(revision 1172)
+++ trunk/tests/post.php	(working copy)
@@ -520,4 +520,26 @@
 
 		$this->assertEquals( 'publish', $post->post_status );
 	}
+
+	/**
+	 * @ticket 22944
+	 */
+	function test_wp_publish_future_post() {
+		$future_date = strtotime( '+1 day' );
+		$content = '<iframe width="420" height="315" src="http://www.youtube.com/embed/oHg5SJYRHA0?rel=0" frameborder="0" allowfullscreen></iframe>';
+
+		$post_id = $this->factory->post->create( array(
+			'post_content' => $content,
+			'post_date' => strftime( '%Y-%m-%d %H:%M:%S', $future_date )
+		) );
+
+		$post = get_post( $post_id );
+		$this->assertEquals( 'future', $post->post_status );
+
+		wp_publish_post( $post_id );
+		$post = get_post( $post_id );
+
+		$this->assertEquals( 'publish', $post->post_status );
+		$this->assertEquals( $content, $post->post_content );
+	}
 }
