Do not double-mark posts as "Private" in the admin. fixes #3146

git-svn-id: https://develop.svn.wordpress.org/trunk@7404 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2008-03-19 21:33:47 +00:00
parent 222de67dca
commit df6429885e
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -54,11 +54,13 @@ function get_the_title( $id = 0 ) {
$post = &get_post($id);
$title = $post->post_title;
if ( !empty($post->post_password) )
$title = sprintf(__('Protected: %s'), $title);
else if ( isset($post->post_status) && 'private' == $post->post_status )
$title = sprintf(__('Private: %s'), $title);
if ( !is_admin() ) {
if ( !empty($post->post_password) )
$title = sprintf(__('Protected: %s'), $title);
else if ( isset($post->post_status) && 'private' == $post->post_status )
$title = sprintf(__('Private: %s'), $title);
}
return apply_filters( 'the_title', $title );
}