Index: wp-includes/post-template.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- wp-includes/post-template.php	(revision 38092)
+++ wp-includes/post-template.php	(revision )
@@ -795,6 +795,23 @@
 	return ! $hasher->CheckPassword( $post->post_password, $hash );
 }
 
+/**
+ * Whether post status is private.
+ *
+ * @since
+ *
+ * @param int|WP_Post|null $post An optional post. Global $post used if not provided.
+ * @return bool true if the post status is 'private', false otherwise.
+ */
+function is_private( $post = null ) {
+	$post = get_post( $post );
+
+	if ( ( 'private' === $post->post_password ) )
+		return true;
+
+	return false;
+}
+
 //
 // Page Template Functions for usage in Themes
 //
