summaryrefslogtreecommitdiffstats
path: root/wp-includes/post-template.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/post-template.php')
-rw-r--r--wp-includes/post-template.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php
index 1c18980..fcd3f89 100644
--- a/wp-includes/post-template.php
+++ b/wp-includes/post-template.php
@@ -34,6 +34,8 @@ function get_the_title($id = 0) {
$title = $post->post_title;
if ( !empty($post->post_password) )
$title = sprintf(__('Protected: %s'), $title);
+ else if ( 'private' == $post->post_status )
+ $title = sprintf(__('Private: %s'), $title);
return $title;
}